Guest User

Untitled

a guest
Sep 1st, 2023
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.26 KB | None | 0 0
  1. ## Version 2023/05/31
  2. # make sure that your <container_name> container is named <container_name>
  3. # make sure that your dns has a cname set for <container_name>
  4.  
  5. server {
  6. # listen 443 ssl http2;
  7. # listen [::]:443 ssl http2;
  8.  
  9. server_name immich.*;
  10.  
  11. include /config/nginx/ssl.conf;
  12.  
  13. client_max_body_size 0;
  14.  
  15. # enable for ldap auth (requires ldap-location.conf in the location block)
  16. #include /config/nginx/ldap-server.conf;
  17.  
  18. # enable for Authelia (requires authelia-location.conf in the location block)
  19. #include /config/nginx/authelia-server.conf;
  20.  
  21. # enable for Authentik (requires authentik-location.conf in the location block)
  22. #include /config/nginx/authentik-server.conf;
  23.  
  24. location / {
  25. # enable the next two lines for http auth
  26. #auth_basic "Restricted";
  27. #auth_basic_user_file /config/nginx/.htpasswd;
  28.  
  29. # enable for ldap auth (requires ldap-server.conf in the server block)
  30. #include /config/nginx/ldap-location.conf;
  31.  
  32. # enable for Authelia (requires authelia-server.conf in the server block)
  33. #include /config/nginx/authelia-location.conf;
  34.  
  35. # enable for Authentik (requires authentik-server.conf in the server block)
  36. #include /config/nginx/authentik-location.conf;
  37.  
  38. include /config/nginx/proxy.conf;
  39. include /config/nginx/resolver.conf;
  40. set $upstream_app immich_proxy;
  41. set $upstream_port 2283;
  42. set $upstream_proto http;
  43. proxy_pass $upstream_proto://$upstream_app:$upstream_port;
  44. proxy_set_header Host $http_host;
  45. proxy_set_header X-Real-IP $remote_addr;
  46. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  47. proxy_set_header X-Forwarded-Proto $scheme;
  48. # proxy_http_version 1.1;
  49. proxy_set_header Upgrade $http_upgrade;
  50. proxy_set_header Connection "upgrade";
  51. # proxy_redirect off;
  52.  
  53. }
  54.  
  55. location ~ /immich-api/api {
  56. include /config/nginx/proxy.conf;
  57. include /config/nginx/resolver.conf;
  58. set $upstream_app immich-api;
  59. set $upstream_port 3001;
  60. set $upstream_proto http;
  61. proxy_pass $upstream_proto://$upstream_app:$upstream_port;
  62. }
  63. }
  64.  
Advertisement
Add Comment
Please, Sign In to add comment