File tree Expand file tree Collapse file tree 2 files changed +14
-20
lines changed Expand file tree Collapse file tree 2 files changed +14
-20
lines changed Original file line number Diff line number Diff line change 1- ## Version 2024/04/25
1+ ## Version 2024/07/06
22# make sure that your nextcloud container is named nextcloud
3+ # make sure that your nextcloud container is on the same docker network as swag
34# make sure that your dns has a cname set for nextcloud
4- # assuming this container is called "swag", edit your nextcloud container's config
5- # located at /config/www/nextcloud/config/config.php and add the following lines before the ");":
6- # 'trusted_proxies' => [gethostbyname('swag') ],
5+ # edit your nextcloud container's config located at
6+ # /config/www/nextcloud/config/config.php and add the following lines before the ");":
7+ # 'trusted_proxies' => ['172.16.0.0/12' ],
78# 'overwrite.cli.url' => 'https://nextcloud.example.com/',
89# 'overwritehost' => 'nextcloud.example.com',
910# 'overwriteprotocol' => 'https',
10- #
11- # Also don't forget to add your domain name to the trusted domains array. It should look somewhat like this:
12- # array (
13- # 0 => '192.168.0.1:444', # This line may look different on your setup, don't modify it.
14- # 1 => 'nextcloud.example.com',
15- # ),
11+ # add your domain name to the trusted domains array:
12+ # 'trusted_domains' => ['nextcloud.example.com'],
1613
1714server {
1815 listen 443 ssl http2;
Original file line number Diff line number Diff line change 1- ## Version 2024/04/25
1+ ## Version 2024/07/06
22# make sure that your nextcloud container is named nextcloud
3+ # make sure that your nextcloud container is on the same docker network as swag
34# make sure that nextcloud is set to work with the base url /nextcloud/
4- # Assuming this container is called "swag", edit your nextcloud container's config
5- # located at /config/www/nextcloud/config/config.php and add the following lines before the ");":
6- # 'trusted_proxies' => [gethostbyname('swag') ],
5+ # edit your nextcloud container's config located at
6+ # /config/www/nextcloud/config/config.php and add the following lines before the ");":
7+ # 'trusted_proxies' => ['172.16.0.0/12' ],
78# 'overwritewebroot' => '/nextcloud',
89# 'overwrite.cli.url' => 'https://example.com/nextcloud',
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 => 'example.com',
14- # ),
10+ # add your domain name to the trusted domains array:
11+ # 'trusted_domains' => ['nextcloud.example.com'],
1512
1613location ^~ /.well-known {
1714 # The rules in this block are an adaptation of the rules
You can’t perform that action at this time.
0 commit comments