pga_vhost.j2 618 B

123456789101112131415161718192021222324252627
  1. {% if ansible_prolog -%}
  2. {% from 'templates/ansible/prolog.j2' import prolog with context %}
  3. {{ prolog() }}
  4. {% endif -%}
  5. # Nginx vhost for phppgadmin
  6. server {
  7. server_name {{ phppgadmin_vhostname }};
  8. access_log /var/log/nginx/pma.access.log;
  9. error_log /var/log/nginx/pma.error.log;
  10. root /usr/share/phppgadmin;
  11. index index.php;
  12. try_files $uri $uri/ /index.php;
  13. {% if http_auth_phppgadmin %}
  14. auth_basic "Restricted Access";
  15. auth_basic_user_file /etc/nginx/auth_admin;
  16. {% endif %}
  17. client_max_body_size 32m;
  18. location ~ \.php(/|$) {
  19. include fastcgi_pass_fpm;
  20. }
  21. }