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

Update nginx.conf

This commit is contained in:
ericgaspar 2021-10-08 00:05:40 +02:00
parent e30ec378dc
commit 9de0622666
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -1,5 +1,9 @@
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
location ~ ^/.well-known/(webfinger|nodeinfo|host-meta) { location ~ ^/.well-known/(webfinger|nodeinfo|host-meta) {
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;