scratch_ynh/conf/nginx.conf

13 lines
305 B
Nginx Configuration File
Raw Normal View History

2018-11-29 16:18:40 +01:00
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
2018-11-29 16:01:56 +01:00
location __PATH__/ {
2018-11-29 15:04:37 +01:00
2018-11-29 16:18:40 +01:00
# Path to source
alias __FINALPATH__/ ;
# Force usage of https
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
2018-11-29 11:55:24 +01:00
}