heather/caddy: revert /files rewrite, add nix.iscg.dev file explorer
- /files/* back to plain file_server (v2RayTun.zip stays at iscg.dev/files/) - nix.iscg.dev: file_server browse (directory listing) from /var/www/nix - DNS nix.iscg.dev A → 51.250.45.111 added via yc dns
This commit is contained in:
parent
3d2f4172a5
commit
67d6c1b6e6
1 changed files with 8 additions and 0 deletions
|
|
@ -114,6 +114,14 @@ in {
|
||||||
"pi.iscg.dev".extraConfig = piBasicAuth + ''
|
"pi.iscg.dev".extraConfig = piBasicAuth + ''
|
||||||
reverse_proxy 127.0.0.1:30141
|
reverse_proxy 127.0.0.1:30141
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# File explorer (directory listing) для раздачи файлов через браузер.
|
||||||
|
# browse включает Caddy's built-in directory listing. Корень /var/www/nix.
|
||||||
|
# Без auth — класть только публичные файлы.
|
||||||
|
"nix.iscg.dev".extraConfig = ''
|
||||||
|
root * /var/www/nix
|
||||||
|
file_server browse
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue