Set up nextcloud
This commit is contained in:
parent
c8d8ec0148
commit
819c4962cf
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -4,3 +4,4 @@ ddclient/ddclient.conf filter=git-crypt diff=git-crypt
|
|||||||
*.pem filter=git-crypt diff=git-crypt
|
*.pem filter=git-crypt diff=git-crypt
|
||||||
*.env filter=git-crypt diff=git-crypt
|
*.env filter=git-crypt diff=git-crypt
|
||||||
*.override.yml filter=git-crypt diff=git-crypt
|
*.override.yml filter=git-crypt diff=git-crypt
|
||||||
|
*.secret filter=git-crypt diff=git-crypt
|
||||||
|
|||||||
@ -20,3 +20,4 @@ dm.guiotte.fr. IN A 192.168.1.2
|
|||||||
money.guiotte.fr. IN CNAME dm.guiotte.fr.
|
money.guiotte.fr. IN CNAME dm.guiotte.fr.
|
||||||
photos.guiotte.fr. IN CNAME dm.guiotte.fr.
|
photos.guiotte.fr. IN CNAME dm.guiotte.fr.
|
||||||
dl.guiotte.fr. IN CNAME dm.guiotte.fr.
|
dl.guiotte.fr. IN CNAME dm.guiotte.fr.
|
||||||
|
kdoc-testing.guiotte.fr. IN CNAME dm.guiotte.fr.
|
||||||
|
|||||||
@ -185,6 +185,33 @@ services:
|
|||||||
- ./slides-notes/slides:/app/slides
|
- ./slides-notes/slides:/app/slides
|
||||||
|
|
||||||
|
|
||||||
|
nextcloud:
|
||||||
|
image: lscr.io/linuxserver/nextcloud:latest
|
||||||
|
container_name: nextcloud
|
||||||
|
restart: unless-stopped
|
||||||
|
environment: *common-environment
|
||||||
|
volumes:
|
||||||
|
- nextcloud-config:/config
|
||||||
|
- nextcloud-data:/data
|
||||||
|
|
||||||
|
|
||||||
|
nextcloud-db:
|
||||||
|
image: linuxserver/mariadb:latest
|
||||||
|
container_name: nextcloud-db
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
<<: *common-environment
|
||||||
|
FILE__MYSQL_ROOT_PASSWORD: /run/secrets/nextcloud-db-root-pw
|
||||||
|
FILE__MYSQL_PASSWORD: /run/secrets/nextcloud-db-pw
|
||||||
|
MYSQL_DATABASE: database
|
||||||
|
MYSQL_USER: user
|
||||||
|
volumes:
|
||||||
|
- nextcloud-db-config:/config
|
||||||
|
secrets:
|
||||||
|
- nextcloud-db-root-pw
|
||||||
|
- nextcloud-db-pw
|
||||||
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
money-data:
|
money-data:
|
||||||
zotero-data:
|
zotero-data:
|
||||||
@ -194,3 +221,13 @@ volumes:
|
|||||||
taskserver-data:
|
taskserver-data:
|
||||||
taskserver-certs:
|
taskserver-certs:
|
||||||
transmission-config:
|
transmission-config:
|
||||||
|
nextcloud-data:
|
||||||
|
nextcloud-config:
|
||||||
|
nextcloud-db-config:
|
||||||
|
|
||||||
|
|
||||||
|
secrets:
|
||||||
|
nextcloud-db-root-pw:
|
||||||
|
file: nextcloud-db-root-pw.secret
|
||||||
|
nextcloud-db-pw:
|
||||||
|
file: nextcloud-db-pw.secret
|
||||||
|
|||||||
BIN
nextcloud-db-pw.secret
Normal file
BIN
nextcloud-db-pw.secret
Normal file
Binary file not shown.
BIN
nextcloud-db-root-pw.secret
Normal file
BIN
nextcloud-db-root-pw.secret
Normal file
Binary file not shown.
36
swag/nginx/proxy-confs/nextcloud.subdomain.conf
Normal file
36
swag/nginx/proxy-confs/nextcloud.subdomain.conf
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
## Version 2021/05/18
|
||||||
|
# make sure that your dns has a cname set for nextcloud
|
||||||
|
# assuming this container is called "swag", edit your nextcloud container's config
|
||||||
|
# located at /config/www/nextcloud/config/config.php and add the following lines before the ");":
|
||||||
|
# 'trusted_proxies' => ['swag'],
|
||||||
|
# '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 kdoc-testing.*;
|
||||||
|
|
||||||
|
include /config/nginx/ssl.conf;
|
||||||
|
|
||||||
|
client_max_body_size 0;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
include /config/nginx/proxy.conf;
|
||||||
|
include /config/nginx/resolver.conf;
|
||||||
|
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 2048m;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user