29 lines
710 B
Plaintext
29 lines
710 B
Plaintext
server {
|
|
listen 80;
|
|
server_name immich.atomic6.net;
|
|
|
|
# Let's Encrypt challenge path
|
|
location /.well-known/acme-challenge/ {
|
|
alias /var/www/html/.well-known/acme-challenge/;
|
|
try_files $uri =404;
|
|
}
|
|
|
|
# Redirect all other traffic to HTTPS
|
|
location / {
|
|
return 301 https://$server_name$request_uri;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
server_name immich.atomic6.net;
|
|
ssl_certificate /etc/letsencrypt/live/immich.atomic6.net/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/immich.atomic6.net/privkey.pem;
|
|
client_max_body_size 0;
|
|
|
|
location / {
|
|
proxy_pass http://192.168.1.208:2283;
|
|
proxy_set_header Host $host;
|
|
}
|
|
}
|