add hcsuzuki.music
Deploy hcsuzuki.music / deploy (push) Successful in 28s
Deploy nginx / deploy (push) Failing after 4s
Deploy nginx / test (push) Has been skipped

This commit is contained in:
2026-03-28 13:37:49 -04:00
parent 111969fa9c
commit cf26235d70
3 changed files with 83 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
services:
app:
image: git.timothykim.net/hantim/hcsuzuki.music:latest
restart: unless-stopped
container_name: hcsuzuki_music
networks:
- shared
networks:
shared:
external: true
+53
View File
@@ -0,0 +1,53 @@
# Redirect HTTP to HTTPS, bare domain to www
server {
listen 80;
listen [::]:80;
server_name hcsuzuki.music www.hcsuzuki.music;
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
location / {
return 301 https://www.hcsuzuki.music$request_uri;
}
}
# Redirect bare HTTPS domain to www
server {
listen 443 ssl;
listen [::]:443 ssl;
http2 on;
server_name hcsuzuki.music;
ssl_certificate /etc/letsencrypt/live/hcsuzuki.music/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/hcsuzuki.music/privkey.pem;
return 301 https://www.hcsuzuki.music$request_uri;
}
# Main site
server {
listen 443 ssl;
listen [::]:443 ssl;
http2 on;
server_name www.hcsuzuki.music;
ssl_certificate /etc/letsencrypt/live/hcsuzuki.music/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/hcsuzuki.music/privkey.pem;
include /etc/nginx/conf.d/security-headers.inc;
location /media/ {
proxy_pass http://garage:3902/;
proxy_set_header Host hcsuzuki.music.web.garage;
}
location / {
proxy_pass http://hcsuzuki_music:80;
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;
}
}