add yourls container to replace i.psi.ch

This commit is contained in:
ebner committed 2026-10-28 16:01:37 +01:00
1 parent 2612186206
commit 1ae9e04523
2 files changed
+52

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
server {
listen 80;
server_name i-test.psi.ch;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name i-test.psi.ch;
ssl_certificate /etc/nginx/certs/i-test.psi.ch.crt;
ssl_certificate_key /etc/nginx/private/i-test.psi.ch.key;
location / {
proxy_pass http://yourls: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;
}
}
+31
View File
@@ -0,0 +1,31 @@
name: yourls
services:
yourls:
image: gitea.psi.ch/yourls:latest
container_name: yourls
restart: always
depends_on:
- yourls_mariadb
ports:
- 8080:8080
networks:
- yourls_backend
- backend
environment:
YOURLS_DB_HOST: yourls_mariadb
YOURLS_DB_PASS: ${YOURLS_DB_PASS}
YOURLS_SITE: https://i-test.psi.ch
YOURLS_USER: yourls
YOURLS_PASS: ${YOURLS_PASS}
mariadb:
image: mariadb
container_name: yourls_mariadb
restart: always
networks:
- yourls_backend
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: yourls
volumes:
- /opt/webcontent/yourls/db:/var/lib/mysql