1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/opennote_ynh.git synced 2024-09-03 19:46:28 +02:00
opennote_ynh/conf/nginx.conf

17 lines
333 B
Nginx Configuration File
Raw Normal View History

2020-10-13 23:38:00 +02:00
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location __PATH__/ {
2016-06-27 10:27:19 +02:00
# Path to source
2020-10-13 23:38:00 +02:00
alias __FINALPATH__/ ;
2016-06-27 10:27:19 +02:00
2021-06-28 08:31:09 +02:00
# Force usage of https
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
2016-06-27 10:27:19 +02:00
}
2021-06-28 08:31:09 +02:00
index index.html;
2016-06-27 10:27:19 +02:00
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
}