Move Nginx virtual hosts to relative modules
This commit is contained in:
parent
5fa324bfa2
commit
908508743b
3 changed files with 27 additions and 102 deletions
|
@ -22,4 +22,16 @@
|
|||
fsType = "ext4";
|
||||
options = [ "bind" ];
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts."photos.aciceri.dev" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:${builtins.toString config.services.immich.port}";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
extraConfig = ''
|
||||
client_max_body_size 50000M;
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue