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

Force usage of https

This commit is contained in:
ericgaspar 2020-10-05 22:43:13 +02:00
parent 50727498f1
commit 97672fd18d
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -1,4 +1,8 @@
location ^~ __PATH__/ {
# Force usage of https
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
proxy_pass http://127.0.0.1:__PORT__/;
proxy_redirect off;