36 lines
791 B
Plaintext
36 lines
791 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;
|
|
|
|
include /etc/nginx/conf.d/security-headers.inc;
|
|
|
|
location / {
|
|
# restrict to argento (home IP)
|
|
# update if IP changes: dig +short argento.ddns.net
|
|
allow 173.79.207.76;
|
|
deny all;
|
|
|
|
proxy_pass http://garage:3903;
|
|
}
|
|
}
|