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:
parent
e30ec378dc
commit
9de0622666
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue