fix(immich): fix nginx config
This commit is contained in:
parent
f76d5a42d7
commit
9f84522877
|
@ -97,7 +97,7 @@ in {
|
||||||
virtualisation.oci-containers.containers = {
|
virtualisation.oci-containers.containers = {
|
||||||
immich-server = immichBase // {
|
immich-server = immichBase // {
|
||||||
image = "ghcr.io/immich-app/immich-server:${tag}";
|
image = "ghcr.io/immich-app/immich-server:${tag}";
|
||||||
ports = [ "2283:3001" ];
|
ports = [ "3001:3001" ];
|
||||||
entrypoint = "/bin/sh";
|
entrypoint = "/bin/sh";
|
||||||
cmd = [ "./start-server.sh" ];
|
cmd = [ "./start-server.sh" ];
|
||||||
volumes = [ "${uploadDir}:/usr/src/app/upload" ];
|
volumes = [ "${uploadDir}:/usr/src/app/upload" ];
|
||||||
|
@ -151,15 +151,8 @@ in {
|
||||||
services.nginx.virtualHosts.${domain} = {
|
services.nginx.virtualHosts.${domain} = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
locations."/api" = {
|
|
||||||
proxyPass = "http://localhost:2283";
|
|
||||||
extraConfig = ''
|
|
||||||
rewrite /api/(.*) /$1 break;
|
|
||||||
client_max_body_size 50000M;
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://localhost:3000";
|
proxyPass = "http://localhost:3001";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
client_max_body_size 50000M;
|
client_max_body_size 50000M;
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue