remove kgfamily.com
Deploy nginx / deploy (push) Successful in 2s

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