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

Merge pull request #98 from YunoHost-Apps/force-https

Force https to be used
This commit is contained in:
yalh76 2021-10-11 20:17:42 +02:00 committed by GitHub
commit c4a5be97b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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