tcpwiki buecklers

This commit is contained in:
2025-01-13 13:01:21 +01:00
parent 2cc3b0cbbe
commit 55c8ab7cea
2 changed files with 30 additions and 0 deletions

21
conf.d/tcpwiki.conf Normal file
View File

@@ -0,0 +1,21 @@
server {
listen 80;
server_name tcpwiki.psi.ch;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name tcpwiki.psi.ch;
ssl_certificate /etc/nginx/certs/tcpwiki.psi.ch.crt;
ssl_certificate_key /etc/nginx/private/tcpwiki.psi.ch.key;
location / {
proxy_pass http://tcpwiki:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}

View File

@@ -49,6 +49,15 @@ services:
networks:
- backend
tcpwiki:
image: dokuwiki/dokuwiki:latest
container_name: tcpwiki
restart: always
volumes:
- /opt/webcontent/tcpwiki:/storage
networks:
- backend
networks:
public:
backend: