add vps as trusted proxy
This commit is contained in:
parent
4ccc71014f
commit
b6f3b37cdf
1 changed files with 6 additions and 1 deletions
|
@ -20,7 +20,12 @@ in {
|
||||||
|
|
||||||
services.caddy = {
|
services.caddy = {
|
||||||
enable = true;
|
enable = true;
|
||||||
globalConfig = "metrics";
|
globalConfig = ''
|
||||||
|
metrics
|
||||||
|
servers {
|
||||||
|
trusted_proxies static 10.0.0.1
|
||||||
|
}
|
||||||
|
'';
|
||||||
virtualHosts = let
|
virtualHosts = let
|
||||||
mkPublicEntry = name: destination: {
|
mkPublicEntry = name: destination: {
|
||||||
hostName = "${name}.${domain}:80";
|
hostName = "${name}.${domain}:80";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue