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}";
|
||||
proxyMappings = {
|
||||
"dns" = { dest = "http://localhost:8088"; auth = true; };
|
||||
"cdn" = { dest = "http://localhost:3000"; auth = false; };
|
||||
};
|
||||
in {
|
||||
users.users.nginx.extraGroups = [ "acme" ];
|
||||
|
|
|
|||
|
|
@ -3,12 +3,8 @@
|
|||
httpd = {
|
||||
enable = true;
|
||||
virtualHosts."cdn" = {
|
||||
listen = [{ ip = "*"; port = 3000; }];
|
||||
listen = [{ ip = "127.0.0.1"; port = 3000; }];
|
||||
documentRoot = "/mnt/share";
|
||||
extraConfig = ''
|
||||
Options +Indexes +FollowSymLinks
|
||||
Require all granted
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue