[NixOS] Fix org-api basic auth
This commit is contained in:
@@ -128,6 +128,10 @@ in
|
|||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://localhost:2025";
|
proxyPass = "http://localhost:2025";
|
||||||
basicAuthFile = config.age.secrets.org-api-passwords.path;
|
basicAuthFile = config.age.secrets.org-api-passwords.path;
|
||||||
|
extraConfig = ''
|
||||||
|
add_header 'Access-Control-Allow-Origin' '*' always;
|
||||||
|
add_header 'Access-Control-Allow-Methods' 'POST, PUT, DELETE, GET, PATCH, OPTIONS' always;
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
"gitlab.railbird.ai" = {
|
"gitlab.railbird.ai" = {
|
||||||
@@ -142,13 +146,6 @@ in
|
|||||||
proxyPass = "http://[::1]:8222";
|
proxyPass = "http://[::1]:8222";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
"cache.railbird.ai" = {
|
|
||||||
enableACME = true;
|
|
||||||
forceSSL = true;
|
|
||||||
locations."/" = {
|
|
||||||
proxyPass = "http://192.168.1.20:3090";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"syncthing.railbird.ai" = {
|
"syncthing.railbird.ai" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user