Created
May 13, 2020 14:02
-
-
Save mtthsdzwn/0ffb9d0c9a9a886473bf9f762d49f895 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# make sure that your dns has a cname set for nextcloud | |
# assuming this container is called "letsencrypt", edit your nextcloud container's config | |
# located at /config/www/nextcloud/config/config.php and add the following lines before the ");": | |
# 'trusted_proxies' => ['letsencrypt'], | |
# 'overwrite.cli.url' => 'https://nextcloud.your-domain.com/', | |
# 'overwritehost' => 'nextcloud.your-domain.com', | |
# 'overwriteprotocol' => 'https', | |
# | |
# Also don't forget to add your domain name to the trusted domains array. It should look somewhat like this: | |
# array ( | |
# 0 => '192.168.0.1:444', # This line may look different on your setup, don't modify it. | |
# 1 => 'nextcloud.your-domain.com', | |
# ), | |
server { | |
listen 443 ssl; | |
listen [::]:443 ssl; | |
server_name nextcloud.*; | |
include /config/nginx/ssl.conf; | |
client_max_body_size 0; | |
location / { | |
include /config/nginx/proxy.conf; | |
resolver 127.0.0.11 valid=30s; | |
set $upstream_app nextcloud; | |
set $upstream_port 443; | |
set $upstream_proto https; | |
proxy_pass $upstream_proto://$upstream_app:$upstream_port; | |
proxy_max_temp_file_size 1024m; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment