Advertisement
Guest User

Untitled

a guest
Jan 31st, 2021
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. ## Version 2020/12/09
  2. # make sure that your dns has a cname set for nextcloud
  3. # assuming this container is called "swag", edit your nextcloud container's config
  4. # located at /config/www/nextcloud/config/config.php and add the following lines before the ");":
  5. # 'trusted_proxies' => ['swag'],
  6. # 'overwrite.cli.url' => 'https://nextcloud.your-domain.com/',
  7. # 'overwritehost' => 'nextcloud.your-domain.com',
  8. # 'overwriteprotocol' => 'https',
  9. #
  10. # Also don't forget to add your domain name to the trusted domains array. It should look somewhat like this:
  11. # array (
  12. # 0 => '192.168.0.1:444', # This line may look different on your setup, don't modify it.
  13. # 1 => 'nextcloud.your-domain.com',
  14. # ),
  15.  
  16. server {
  17. listen 443 ssl;
  18. listen [::]:443 ssl;
  19.  
  20. server_name cloud.*;
  21.  
  22. include /config/nginx/ssl.conf;
  23.  
  24. client_max_body_size 0;
  25.  
  26. location / {
  27. include /config/nginx/proxy.conf;
  28. resolver 127.0.0.11 valid=30s;
  29. set $upstream_app nextcloud;
  30. set $upstream_port 443;
  31. set $upstream_proto https;
  32. proxy_pass $upstream_proto://$upstream_app:$upstream_port;
  33.  
  34. proxy_max_temp_file_size 2048m;
  35. }
  36. }
  37.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement