server: centralize frp web proxies and enable proxy protocol
This commit is contained in:
@@ -2,6 +2,18 @@
|
||||
services.caddy = {
|
||||
enable = true;
|
||||
email = "acme@imxyy.top";
|
||||
globalConfig = ''
|
||||
servers {
|
||||
listener_wrappers {
|
||||
proxy_protocol {
|
||||
timeout 5s
|
||||
allow 127.0.0.1/32
|
||||
}
|
||||
tls
|
||||
}
|
||||
trusted_proxies static 127.0.0.1
|
||||
}
|
||||
'';
|
||||
};
|
||||
security.acme = {
|
||||
acceptTerms = true;
|
||||
|
||||
Reference in New Issue
Block a user