1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cinny_ynh.git synced 2024-09-03 18:16:13 +02:00
cinny_ynh/conf/nginx.conf

18 lines
376 B
Nginx Configuration File
Raw Normal View History

2018-01-03 23:24:48 +01:00
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location __PATH__/ {
2014-10-20 18:55:53 +02:00
# Path to source
2021-09-18 09:23:19 +02:00
alias __FINALPATH__/;
2017-06-02 17:49:54 +02:00
2018-06-28 22:05:35 +02:00
# Force usage of https
2017-06-02 17:49:54 +02:00
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
2014-10-20 18:55:53 +02:00
2021-09-17 10:15:00 +02:00
# FIXME: Needed ?
more_clear_input_headers 'Accept-Encoding';
2014-10-20 18:55:53 +02:00
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
}