Add yourls container to replace i.psi.ch (#108)

Reviewed-on: linux/WebHosting#108
This commit is contained in:
ebner committed 2026-10-29 16:06:16 +01:00
1 parent 2612186206
commit f74bbed2b2
2 files changed
+60

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;
}
}
+39
View File
@@ -0,0 +1,39 @@
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
env_file:
- path: ${WEBHOSTING_ENV_DIR:-/etc/webhosting}/yourls/yourls.env
required: true
format: raw
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}
yourls_mariadb:
image: mariadb
container_name: yourls_mariadb
restart: always
networks:
- yourls_backend
env_file:
- path: ${WEBHOSTING_ENV_DIR:-/etc/webhosting}/yourls/yourls.env
required: true
format: raw
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: yourls
volumes:
- /opt/webcontent/yourls/db:/var/lib/mysql