diff --git a/.dockerignore b/.dockerignore index 7e91b2d..49bd426 100644 --- a/.dockerignore +++ b/.dockerignore @@ -5,6 +5,7 @@ Dockerfile .dockerignore docker-compose.prod.yml Makefile +Caddyfile .git .gitignore diff --git a/.env.production.example b/.env.production.example index e5feb51..5f8ddc9 100644 --- a/.env.production.example +++ b/.env.production.example @@ -2,7 +2,7 @@ CONTAINER_NAME=universal-web REVERSE_PROXY_NETWORK= UPLOADS_VOLUME_NAME=universal_web_uploads -APP_HOST= +APP_HOST=https://gitara.farmeris.sk PORT=5150 SERVER_BINDING=0.0.0.0 diff --git a/Caddyfile b/Caddyfile new file mode 100644 index 0000000..3abc9fc --- /dev/null +++ b/Caddyfile @@ -0,0 +1,17 @@ +# Reverse-proxy config for temp.sk. +# +# This file is intended to be imported by the central Caddyfile on the server. +# Caddy provisions and renews the HTTPS certificate automatically. + +gitara.farmeris.sk { + encode gzip + + @static path /static/* + header @static Cache-Control "public, max-age=2592000" + + reverse_proxy universal-web:5150 +} + +www.gitara.farmeris.sk { + redir https://temp.sk{uri} permanent +}