try alternative cache domain
This commit is contained in:
parent
6fa16fa422
commit
5cc48a3eb3
5 changed files with 12 additions and 9 deletions
|
@ -18,7 +18,7 @@ in
|
|||
settings = {
|
||||
listen = "[::]:8091";
|
||||
api-endpoint = "https://cache.cy7.sh/";
|
||||
allowed-hosts = [ "cache.cy7.sh" ];
|
||||
allowed-hosts = [ "cache.cy7.sh" "cdn.cy7.sh" ];
|
||||
require-proof-of-possession = false;
|
||||
compression = {
|
||||
type = "none";
|
||||
|
@ -39,9 +39,12 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
services.caddy.virtualHosts."cache.cy7.sh".extraConfig = ''
|
||||
import common
|
||||
reverse_proxy localhost:8091
|
||||
'';
|
||||
services.caddy.virtualHosts."cache.cy7.sh" = {
|
||||
serverAliases = [ "cdn.cy7.sh" ];
|
||||
extraConfig = ''
|
||||
import common
|
||||
reverse_proxy localhost:8091
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue