changed cdn-urls
This commit is contained in:
parent
d4b8392763
commit
46d8907171
1 changed files with 8 additions and 8 deletions
16
cdn.nix
16
cdn.nix
|
@ -34,7 +34,7 @@ cdn-node-setup = args@{ domain, config_file, ... }: {
|
|||
basicAuth = basicAuthLogin;
|
||||
locations = {
|
||||
"~* \\.(m3u8)$" = {
|
||||
proxyPass = "https://cdn-master.lukas.studio$request_uri";
|
||||
proxyPass = "https://cdn-master.live.hacc.media$request_uri";
|
||||
|
||||
extraConfig = ''
|
||||
#proxy_cache = off;
|
||||
|
@ -43,7 +43,7 @@ cdn-node-setup = args@{ domain, config_file, ... }: {
|
|||
'';
|
||||
};
|
||||
"/hls" = {
|
||||
proxyPass = "https://cdn-master.lukas.studio$request_uri";
|
||||
proxyPass = "https://cdn-master.live.hacc.media$request_uri";
|
||||
extraConfig = ''
|
||||
types {
|
||||
application/vnd.apple.mpegurl m3u8;
|
||||
|
@ -254,8 +254,8 @@ cdn-loadbalancer-setup = args@{ domain, config_file, nodes, ... }: {
|
|||
};
|
||||
appendHttpConfig = ''
|
||||
split_clients "''\$''\{remote_addr''\}" $cdnhosts {
|
||||
50% "cdn-node-1.lukas.studio";
|
||||
50% "cdn-node-2.lukas.studio";
|
||||
50% "cdn-node-1.live.hacc.media";
|
||||
50% "cdn-node-2.live.hacc.media";
|
||||
}
|
||||
'';
|
||||
};
|
||||
|
@ -274,20 +274,20 @@ in
|
|||
#network.enableRollback = true;
|
||||
|
||||
cdn-node-1 = cdn-node-setup {
|
||||
domain="cdn-node-1.lukas.studio";
|
||||
domain="cdn-node-1.live.hacc.media";
|
||||
config_file="/Users/lukas/Documents/nixops/configuration-cdn-node-1.nix";
|
||||
};
|
||||
cdn-node-2 = cdn-node-setup {
|
||||
domain="cdn-node-2.lukas.studio";
|
||||
domain="cdn-node-2.live.hacc.media";
|
||||
config_file="/Users/lukas/Documents/nixops/configuration-cdn-node-2.nix";
|
||||
};
|
||||
cdn-master = cdn-master-setup {
|
||||
domain="cdn-master.lukas.studio";
|
||||
domain="cdn-master.live.hacc.media";
|
||||
config_file="/Users/lukas/Documents/nixops/configuration-cdn-master.nix";
|
||||
host-server = "https://rosenbaum.lukas.studio";
|
||||
};
|
||||
cdn-loadbalancer = cdn-loadbalancer-setup {
|
||||
domain="cdn-loadbalancer.lukas.studio";
|
||||
domain="cdn-loadbalancer.live.hacc.media";
|
||||
config_file="/Users/lukas/Documents/nixops/configuration-cdn-loadbalancer.nix";
|
||||
nodes= {
|
||||
# implement automatic node setting
|
||||
|
|
Loading…
Reference in a new issue