adds caddy to home server
This commit is contained in:
parent
a1f16c0017
commit
a51a84d7cf
1 changed files with 22 additions and 0 deletions
|
|
@ -129,6 +129,28 @@
|
||||||
trim.enable = true;
|
trim.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Caddy
|
||||||
|
services.caddy = {
|
||||||
|
enable = true;
|
||||||
|
virtualHosts."media.lan".extraConfig = ''
|
||||||
|
reverse_proxy localhost:8096
|
||||||
|
tls internal
|
||||||
|
'';
|
||||||
|
virtualHosts."stash.lan".extraConfig = ''
|
||||||
|
reverse_proxy localhost:9069
|
||||||
|
tls internal
|
||||||
|
'';
|
||||||
|
virtualHosts."finance.lan".extraConfig = ''
|
||||||
|
encode gzip zstd
|
||||||
|
reverse_proxy localhost:9002
|
||||||
|
tls internal
|
||||||
|
'';
|
||||||
|
virtualHosts."photos.lan".extraConfig = ''
|
||||||
|
reverse_proxy localhost:9003
|
||||||
|
tls internal
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
# Environment variables
|
# Environment variables
|
||||||
environment.variables.EDITOR = "nvim";
|
environment.variables.EDITOR = "nvim";
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue