readytouse
This commit is contained in:
parent
91063c1a0c
commit
9281354f2e
16 changed files with 690 additions and 0 deletions
|
|
@ -0,0 +1,25 @@
|
|||
# Configuration HTTP temporaire pour obtenir le certificat Let's Encrypt
|
||||
server {
|
||||
listen 80;
|
||||
server_name {{ immich_domain }};
|
||||
|
||||
client_max_body_size {{ immich_nginx_client_max_body_size | default('10G') }};
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:{{ immich_host_http_port }};
|
||||
|
||||
proxy_http_version 1.1;
|
||||
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;
|
||||
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
|
||||
proxy_read_timeout 3600;
|
||||
proxy_send_timeout 3600;
|
||||
proxy_request_buffering off;
|
||||
proxy_buffering off;
|
||||
}
|
||||
}
|
||||
41
immich-ansible/roles/nginx/templates/immich.https.conf.j2
Normal file
41
immich-ansible/roles/nginx/templates/immich.https.conf.j2
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
# HTTP -> HTTPS
|
||||
server {
|
||||
listen 80;
|
||||
server_name {{ immich_domain }};
|
||||
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
# Immich HTTPS reverse proxy
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
server_name {{ immich_domain }};
|
||||
|
||||
client_max_body_size {{ immich_nginx_client_max_body_size | default('10G') }};
|
||||
|
||||
ssl_certificate /etc/letsencrypt/live/{{ immich_domain }}/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/{{ immich_domain }}/privkey.pem;
|
||||
|
||||
ssl_protocols TLSv1.2 TLSv1.3;
|
||||
ssl_prefer_server_ciphers off;
|
||||
ssl_session_cache shared:SSL:10m;
|
||||
ssl_session_timeout 1d;
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:{{ immich_host_http_port }};
|
||||
|
||||
proxy_http_version 1.1;
|
||||
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 https;
|
||||
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
|
||||
proxy_read_timeout 3600;
|
||||
proxy_send_timeout 3600;
|
||||
proxy_request_buffering off;
|
||||
proxy_buffering off;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue