Add Nextcloud
All checks were successful
ShellCheck / shellcheck (push) Successful in 21s

This commit is contained in:
Mathieu Strypsteen 2024-02-29 10:05:48 +01:00
parent 82d06d3bb3
commit 3ada6db69e
Signed by: mathieu
GPG key ID: 782A42E461BC6824
8 changed files with 56 additions and 5 deletions

View file

@ -0,0 +1,11 @@
server {
server_name cloud.strypsteen.com;
listen 443 ssl;
listen [::]:443 ssl;
include snippets/headers.conf;
location / {
set $upstream systemd-nextcloud.;
proxy_pass http://$upstream;
include snippets/proxy.conf;
}
}

View file

@ -0,0 +1,15 @@
server {
server_name office.strypsteen.com;
listen 443 ssl;
listen [::]:443 ssl;
include snippets/headers.conf;
location / {
set $upstream systemd-collabora.;
proxy_pass https://$upstream:9980;
proxy_ssl_verify off;
include snippets/proxy.conf;
proxy_http_version 1.1;
proxy_set_header Connection upgrade;
proxy_set_header Upgrade $http_upgrade;
}
}

View file

@ -1,4 +1,5 @@
[Service]
ExecStart=/usr/bin/code-server --bind-addr 0.0.0.0:8080 --disable-telemetry
ExecStartPre=-sudo chown -Rh coder:coder /home/coder
ExecStart=code-server --bind-addr 0.0.0.0:8080 --disable-telemetry
[Install]
WantedBy=default.target

View file

@ -4,9 +4,9 @@ UserNS=auto:size=65536
ReadOnly=false
Network=nginx.network
Volume=/var/lib/system-config/misc/vscode.json:/home/coder/.local/share/code-server/Machine/settings.json:z,ro
Volume=code-server-settings.volume:/home/coder/.local/share/code-server:Z
Volume=code-server-ssh.volume:/home/coder/.ssh:Z
Volume=code-server-projects.volume:/home/coder/projects:Z
Volume=code-server-settings.volume:/home/coder/.local/share/code-server:U,Z
Volume=code-server-ssh.volume:/home/coder/.ssh:U,Z
Volume=code-server-projects.volume:/home/coder/projects:U,Z
Volume=/etc/gitconfig:/etc/gitconfig:z,ro
Secret=CODE_SERVER_PASSWORD,type=env,target=PASSWORD
AutoUpdate=registry

View file

@ -0,0 +1,10 @@
[Container]
Image=docker.io/collabora/code
UserNS=auto
ReadOnly=false
AddCapability=CAP_MKNOD
Network=nginx.network
Volume=/var/lib/container-data/collabora.xml:/etc/coolwsd/coolwsd.xml:U,Z
AutoUpdate=registry
[Install]
WantedBy=multi-user.target

View file

@ -0,0 +1,14 @@
[Unit]
Requires=postgresql.service
After=postgresql.service
[Container]
Image=docker.io/nextcloud
PodmanArgs=--entrypoint=sh
UserNS=auto
Network=nginx.network
Exec=-c "chown -Rh www-data:www-data /var/www/html && /entrypoint.sh apache2-foreground"
Volume=nextcloud.volume:/var/www/html:U,Z
Environment=OVERWRITEPROTOCOL=https
AutoUpdate=registry
[Install]
WantedBy=multi-user.target

View file

@ -3,7 +3,7 @@ Wants=network-online.target
After=network-online.target
StartLimitIntervalSec=0
[Service]
ExecStart=/bin/sh -c "/usr/bin/ssh -NTR 80:127.0.0.1:80 -R 443:127.0.0.1:443 -R 2222:127.0.0.1:2222 -R 18089:127.0.0.1:18089 tunnel@home-gw"
ExecStart=sh -c "ssh -NTR 80:$(hostname -I | cut -d' ' -f1):80 -R 443:$(hostname -I | cut -d' ' -f1):443 -R 2222:$(hostname -I | cut -d' ' -f1):2222 -R 18089:$(hostname -I | cut -d' ' -f1):18089 tunnel@home-gw"
Restart=always
RestartSec=10
[Install]