1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cachet_ynh.git synced 2024-09-03 18:16:03 +02:00
cachet_ynh/conf/nginx.conf
Éric Gaspar bb6a88d490
Version 2 (#32) (#33)
* v2

* Auto-update README

* v2

* fix

* Auto-update README

---------

Co-authored-by: yunohost-bot <yunohost@yunohost.org>
2023-06-21 09:27:43 +02:00

24 lines
633 B
Nginx Configuration File

#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location __PATH__/ {
# Path to source
alias __INSTALL_DIR__/public/;
index index.php;
more_set_headers "Strict-Transport-Security: max-age=15768000";
try_files $uri __PATH__/index.php;
location ~ \.php$ {
fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_keep_conn on;
more_set_headers "Strict-Transport-Security: max-age=15768000";
}
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
}