Skip to content

Commit 6fda764

Browse files
committed
Create a new immich-server config sample.
Immich updated their official docker-compose.yml and renamed the immich service to immich-server, as per discussion in linuxserver#713 the feedback was to create a new config. I updated the date on the original config to draw attention to this.
1 parent e0e4e49 commit 6fda764

File tree

2 files changed

+61
-2
lines changed

2 files changed

+61
-2
lines changed
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
## Version 2024/12/06
2+
# make sure that your immich container is named immich-server
3+
# make sure that your dns has a cname set for immich-server
4+
# immich v1.118+ only with the official docker-compose.yml.
5+
# For earlier versions use immich.subdomain.conf.sample
6+
7+
server {
8+
listen 443 ssl;
9+
listen [::]:443 ssl;
10+
11+
server_name immich.*;
12+
13+
include /config/nginx/ssl.conf;
14+
15+
client_max_body_size 0;
16+
17+
# enable for ldap auth (requires ldap-location.conf in the location block)
18+
#include /config/nginx/ldap-server.conf;
19+
20+
# enable for Authelia (requires authelia-location.conf in the location block)
21+
#include /config/nginx/authelia-server.conf;
22+
23+
# enable for Authentik (requires authentik-location.conf in the location block)
24+
#include /config/nginx/authentik-server.conf;
25+
26+
location / {
27+
# enable the next two lines for http auth
28+
#auth_basic "Restricted";
29+
#auth_basic_user_file /config/nginx/.htpasswd;
30+
31+
# enable for ldap auth (requires ldap-server.conf in the server block)
32+
#include /config/nginx/ldap-location.conf;
33+
34+
# enable for Authelia (requires authelia-server.conf in the server block)
35+
#include /config/nginx/authelia-location.conf;
36+
37+
# enable for Authentik (requires authentik-server.conf in the server block)
38+
#include /config/nginx/authentik-location.conf;
39+
40+
include /config/nginx/proxy.conf;
41+
include /config/nginx/resolver.conf;
42+
set $upstream_app immich-server;
43+
set $upstream_port 2283;
44+
set $upstream_proto http;
45+
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
46+
47+
}
48+
49+
location ~ (/immich)?/api {
50+
include /config/nginx/proxy.conf;
51+
include /config/nginx/resolver.conf;
52+
set $upstream_app immich-server;
53+
set $upstream_port 2283;
54+
set $upstream_proto http;
55+
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
56+
57+
}
58+
}

immich.subdomain.conf.sample

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
## Version 2024/10/15
1+
## Version 2024/12/06
22
# make sure that your immich container is named immich
33
# make sure that your dns has a cname set for immich
4-
# immich v1.118+ only. For earlier versions, change $upstream_port to 3001
4+
# immich v1.118+ only using the old docker-compose.yml.
5+
# For earlier versions, change $upstream_port to 3001
56

67
server {
78
listen 443 ssl;

0 commit comments

Comments
 (0)