Fix nginx settings for Nextcloud.
This commit is contained in:
parent
7a9479abee
commit
e0b705e860
|
@ -2,6 +2,7 @@ server {
|
|||
|
||||
server_name next.ionathan.ch;
|
||||
client_max_body_size 512M;
|
||||
add_header Strict-Transport-Security "max-age=15552000; includeSubDomains" always;
|
||||
|
||||
location / {
|
||||
proxy_pass http://localhost:8080;
|
||||
|
@ -9,10 +10,10 @@ server {
|
|||
proxy_set_header X-Real-IP $remote_addr;
|
||||
}
|
||||
location = /.well-known/carddav {
|
||||
return 301 http://localhost:8080/remote.php/dav;
|
||||
return 301 $scheme://$host/remote.php/dav;
|
||||
}
|
||||
location = /.well-known/caldav {
|
||||
return 301 http://localhost:8080/remote.php/dav;
|
||||
return 301 $scheme://$host/remote.php/dav;
|
||||
}
|
||||
|
||||
listen [::]:443 ssl; # managed by Certbot
|
||||
|
@ -37,4 +38,4 @@ server {
|
|||
return 404; # managed by Certbot
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue