Skip to content

Commit

Permalink
services/sicp-staging: add cors settings
Browse files Browse the repository at this point in the history
  • Loading branch information
linyinfeng committed Sep 25, 2024
1 parent 3512701 commit 0326e81
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions nixos/profiles/services/sicp-staging/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,21 @@ in
};
};
};
management = {
endpoints = {
web = {
allowed-origins = [
"https://sicp-staging.li7g.com"
"http://localhost:5173"
"http://localhost:3000"
];
allowed-methods = "*";
allowed-headers = "*";
allowed-credentials = true;
max-age = "3600s";
};
};
};
};

services.nginx.virtualHosts."sicp-staging.*" =
Expand Down

0 comments on commit 0326e81

Please sign in to comment.