1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mattermost_ynh.git synced 2024-09-03 19:36:29 +02:00

Update nginx.conf

This commit is contained in:
ericgaspar 2021-12-05 14:36:54 +01:00
parent 2c1aaac239
commit f57f856d08
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -34,9 +34,4 @@ location __PATH__/ {
#proxy_cache_use_stale timeout; #proxy_cache_use_stale timeout;
#proxy_cache_lock on; #proxy_cache_lock on;
proxy_pass http://127.0.0.1:__PORT__; proxy_pass http://127.0.0.1:__PORT__;
# Yunohost addition: redirect HTTP to HTTPS
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
} }