mirror of
https://github.com/nextcloud/all-in-one.git
synced 2024-12-27 17:21:14 +08:00
Fix reverse proxy documentation for nginx
Signed-off-by: Zoey <zoey@z0ey.de>
This commit is contained in:
parent
3fa584442b
commit
9019fda7e4
1 changed files with 3 additions and 2 deletions
|
@ -243,18 +243,19 @@ map $http_upgrade $connection_upgrade {
|
|||
|
||||
server {
|
||||
listen 80;
|
||||
# listen [::]:80; # uncomment to use IPv6
|
||||
listen [::]:80; # comment to disable IPv6
|
||||
|
||||
if ($scheme = "http") {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
listen 443 ssl http2;
|
||||
# listen [::]:443 ssl http2; # uncomment to use IPv6
|
||||
listen [::]:443 ssl http2; # comment to disable IPv6
|
||||
|
||||
server_name <your-nc-domain>;
|
||||
|
||||
location / {
|
||||
resolver localhost;
|
||||
proxy_pass http://localhost:11000$request_uri;
|
||||
|
||||
proxy_set_header Host $host;
|
||||
|
|
Loading…
Reference in a new issue