diff --git a/servers/keymaker/docker-compose.d/custom/nginx/conf.d/shlink.conf b/servers/keymaker/docker-compose.d/custom/nginx/conf.d/shlink.conf new file mode 100644 index 0000000..c827b73 --- /dev/null +++ b/servers/keymaker/docker-compose.d/custom/nginx/conf.d/shlink.conf @@ -0,0 +1,10 @@ +server { + listen 80; + server_name via.ixvd.net; + + location / { + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $remote_addr; + proxy_pass http://shlink:8080; + } +} \ No newline at end of file diff --git a/servers/keymaker/docker-compose.d/docker-compose.shlink.yml b/servers/keymaker/docker-compose.d/docker-compose.shlink.yml new file mode 100644 index 0000000..d3bfe04 --- /dev/null +++ b/servers/keymaker/docker-compose.d/docker-compose.shlink.yml @@ -0,0 +1,33 @@ +version: '2.2' +services: + shlink: + image: shlinkio/shlink:stable + restart: always + environment: + TZ: "Europe/Amsterdam" + DEFAULT_DOMAIN: via.ixvd.net + DB_DRIVER: maria + DB_USER: shlink + DB_NAME: shlink + DB_PASSWORD: shlink + DB_HOST: shlink-db + env_file: + - ../../env/shlink.env + depends_on: + - shlink-db + networks: + - proxy + - internal + + shlink-db: + image: mariadb:10.8 + restart: always + environment: + MARIADB_ROOT_PASSWORD: + MARIADB_DATABASE: shlink + MARIADB_USER: shlink + MARIADB_PASSWORD: shlink + volumes: + - /srv/shlink/data:/var/lib/mysql + networks: + - internal diff --git a/servers/kid/README.md b/servers/kid/README.md index 70e3b87..b21f552 100644 --- a/servers/kid/README.md +++ b/servers/kid/README.md @@ -1 +1,2 @@ server configuration for `kid`. +mostly houses *non-essential* services. \ No newline at end of file diff --git a/servers/kid/docker-compose.d/custom/nginx/conf.d/libretranslate.conf b/servers/kid/docker-compose.d/custom/nginx/conf.d/libretranslate.conf new file mode 100644 index 0000000..69de96e --- /dev/null +++ b/servers/kid/docker-compose.d/custom/nginx/conf.d/libretranslate.conf @@ -0,0 +1,9 @@ +server { + listen 80; + server_name translate.ixvd.net; + + location / { + proxy_set_header X-Forwarded-For $remote_addr; + proxy_pass http://libretranslate:5000; + } +} \ No newline at end of file diff --git a/servers/kid/docker-compose.d/docker-compose.libretranslate.yml b/servers/kid/docker-compose.d/docker-compose.libretranslate.yml new file mode 100644 index 0000000..14cada4 --- /dev/null +++ b/servers/kid/docker-compose.d/docker-compose.libretranslate.yml @@ -0,0 +1,10 @@ +version: '2.2' +services: + libretranslate: + image: libretranslate/libretranslate + restart: always + volumes: + - /srv/libretranslate/data:/home/libretranslate/.local/share + - /srv/libretranslate/other/cache:/home/libretranslate/.local/share + networks: + - proxy