Playbooks to a new Lilik
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
648 B

8 years ago
8 years ago
  1. {% extends "roles/nginx/templates/service.conf" %}
  2. {% block proxy_conf %}
  3. location / {
  4. rewrite ^/$ icingaweb2 redirect;
  5. }
  6. location ~ ^/icingaweb2/index\.php(.*)$ {
  7. fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
  8. fastcgi_index index.php;
  9. include fastcgi_params;
  10. fastcgi_param SCRIPT_FILENAME /usr/share/icingaweb2/public/index.php;
  11. fastcgi_param ICINGAWEB_CONFIGDIR /etc/icingaweb2;
  12. fastcgi_param REMOTE_USER $remote_user;
  13. }
  14. location ~ ^/icingaweb2(.+)? {
  15. alias /usr/share/icingaweb2/public;
  16. try_files $1 $uri $uri/ /icingaweb2/index.php$is_args$args;
  17. }
  18. {% endblock %}