Skip to content

Commit 8ee4359

Browse files
committed
Update nextcloud's instructions
1 parent e58d95d commit 8ee4359

File tree

2 files changed

+14
-20
lines changed

2 files changed

+14
-20
lines changed

nextcloud.subdomain.conf.sample

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
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

1714
server {
1815
listen 443 ssl http2;

nextcloud.subfolder.conf.sample

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
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

1613
location ^~ /.well-known {
1714
# The rules in this block are an adaptation of the rules

0 commit comments

Comments
 (0)