Files
hantim-server/docker/nginx/conf.d/garage.hantim.net.conf
T
timothykim a421ecc837
Deploy garage / deploy (push) Successful in 5s
Deploy nginx / deploy (push) Successful in 13s
add garage admin api with token, expose via garage.hantim.net
2026-03-19 17:19:03 -04:00

31 lines
668 B
Plaintext

# Garage admin API
server {
listen 80;
listen [::]:80;
server_name garage.hantim.net;
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
location / {
return 301 https://garage.hantim.net$request_uri;
}
}
server {
listen 443 ssl;
listen [::]:443 ssl;
http2 on;
server_name garage.hantim.net;
ssl_certificate /etc/letsencrypt/live/garage.hantim.net/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/garage.hantim.net/privkey.pem;
add_header Strict-Transport-Security "max-age=63072000; preload" always;
location / {
proxy_pass http://garage:3903;
}
}