Fixes for example file.
This commit is contained in:
parent
9258c9a547
commit
7b057765fe
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name cloud.example.com;
|
server_name cloud.example.com nextcloud.example.com;
|
||||||
|
|
||||||
location /.well-known/acme-challenge/ {
|
location /.well-known/acme-challenge/ {
|
||||||
default_type "text/plain";
|
default_type "text/plain";
|
||||||
@ -31,10 +31,10 @@ server {
|
|||||||
|
|
||||||
server {
|
server {
|
||||||
listen 443 ssl;
|
listen 443 ssl;
|
||||||
server_name cloud.example.com;
|
server_name cloud.example.com nextcloud.example.com;
|
||||||
|
|
||||||
ssl_certificate /etc/nginx/certs/cloud.example.com/fullchain.pem; # managed by Certbot
|
ssl_certificate /etc/nginx/certs/nextcloud.example.com/fullchain.pem; # managed by Certbot
|
||||||
ssl_certificate_key /etc/nginx/certs/cloud.example.com/privkey.pem; # managed by Certbot
|
ssl_certificate_key /etc/nginx/certs/nextcloud.example.com/privkey.pem; # managed by Certbot
|
||||||
|
|
||||||
# https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/reverse_proxy_configuration.html#nginx
|
# https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/reverse_proxy_configuration.html#nginx
|
||||||
rewrite ^/\.well-known/carddav https://$server_name/remote.php/dav/ redirect;
|
rewrite ^/\.well-known/carddav https://$server_name/remote.php/dav/ redirect;
|
||||||
@ -48,7 +48,6 @@ server {
|
|||||||
# Attempt to make OnlyOffice work both internally and externally.
|
# Attempt to make OnlyOffice work both internally and externally.
|
||||||
# https://helpcenter.onlyoffice.com/installation/docs-nextcloud-proxy.aspx
|
# https://helpcenter.onlyoffice.com/installation/docs-nextcloud-proxy.aspx
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection $proxy_connection;
|
|
||||||
proxy_set_header X-Forwarded-Host $http_host/office;
|
proxy_set_header X-Forwarded-Host $http_host/office;
|
||||||
|
|
||||||
# Send traffic to upstream server
|
# Send traffic to upstream server
|
||||||
@ -65,12 +64,12 @@ server {
|
|||||||
# Attempt to make OnlyOffice work both internally and externally.
|
# Attempt to make OnlyOffice work both internally and externally.
|
||||||
# https://helpcenter.onlyoffice.com/installation/docs-nextcloud-proxy.asp
|
# https://helpcenter.onlyoffice.com/installation/docs-nextcloud-proxy.asp
|
||||||
proxy_pass_header Server;
|
proxy_pass_header Server;
|
||||||
proxy_pass http://hyperling-cloud;
|
proxy_pass http://example-cloud;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Attempt to make OnlyOffice work both internally and externally.
|
# Attempt to make OnlyOffice work both internally and externally.
|
||||||
# https://helpcenter.onlyoffice.com/installation/docs-nextcloud-proxy.aspx
|
# https://helpcenter.onlyoffice.com/installation/docs-nextcloud-proxy.aspx
|
||||||
location /office/ {
|
location /office/ {
|
||||||
proxy_pass http://hyperling-office-http;
|
proxy_pass http://example-office-http;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user