We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76bc86a commit 62dbd79Copy full SHA for 62dbd79
1 file changed
nix/nixos-module.nix
@@ -332,11 +332,20 @@ in
332
))
333
{
334
"${cfg.nginxConfig.subpath}" = {
335
- proxyPass = "http://127.0.0.1:${builtins.toString cfg.port}";
+ alias = "${xnode-auth}/share/client";
336
+ };
337
+ "${cfg.nginxConfig.subpath}/_astro" = {
338
+ alias = "${xnode-auth}/share/client/_astro";
339
extraConfig = ''
- proxy_set_header Host $server_name;
340
+ add_header Cache-Control "public, max-age=31536000, immutable";
341
'';
342
};
343
+ # "${cfg.nginxConfig.subpath}/api" = {
344
+ # proxyPass = "http://127.0.0.1:${builtins.toString cfg.port}${cfg.nginxConfig.subpath}/api";
345
+ # extraConfig = ''
346
+ # proxy_set_header Host $server_name;
347
+ # '';
348
+ # };
349
"${cfg.nginxConfig.subpath}/api/internal" = {
350
351
return 403;
0 commit comments