add cdn to proxy
This commit is contained in:
parent
a57a266372
commit
5246d65afb
2 changed files with 3 additions and 6 deletions
|
|
@ -2,6 +2,7 @@
|
||||||
base = "proxy.${homelab.domain}";
|
base = "proxy.${homelab.domain}";
|
||||||
proxyMappings = {
|
proxyMappings = {
|
||||||
"dns" = { dest = "http://localhost:8088"; auth = true; };
|
"dns" = { dest = "http://localhost:8088"; auth = true; };
|
||||||
|
"cdn" = { dest = "http://localhost:3000"; auth = false; };
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
users.users.nginx.extraGroups = [ "acme" ];
|
users.users.nginx.extraGroups = [ "acme" ];
|
||||||
|
|
|
||||||
|
|
@ -3,12 +3,8 @@
|
||||||
httpd = {
|
httpd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
virtualHosts."cdn" = {
|
virtualHosts."cdn" = {
|
||||||
listen = [{ ip = "*"; port = 3000; }];
|
listen = [{ ip = "127.0.0.1"; port = 3000; }];
|
||||||
documentRoot = "/mnt/share";
|
documentRoot = "/mnt/share";
|
||||||
extraConfig = ''
|
|
||||||
Options +Indexes +FollowSymLinks
|
|
||||||
Require all granted
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue