This commit is contained in:
parent
82d06d3bb3
commit
3ada6db69e
8 changed files with 56 additions and 5 deletions
11
container-config/nginx-home/nextcloud
Normal file
11
container-config/nginx-home/nextcloud
Normal 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;
|
||||
}
|
||||
}
|
15
container-config/nginx-home/office
Normal file
15
container-config/nginx-home/office
Normal 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;
|
||||
}
|
||||
}
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
10
home/etc/containers/systemd/collabora.container
Normal file
10
home/etc/containers/systemd/collabora.container
Normal 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
|
14
home/etc/containers/systemd/nextcloud.container
Normal file
14
home/etc/containers/systemd/nextcloud.container
Normal 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
|
0
home/etc/containers/systemd/nextcloud.volume
Normal file
0
home/etc/containers/systemd/nextcloud.volume
Normal 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]
|
||||
|
|
Loading…
Add table
Reference in a new issue