mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-10 14:50:40 +02:00
fix: allow api server in firewall and add CORS header
This commit is contained in:
parent
4c2f98f9e4
commit
e24f9e4c0b
5 changed files with 43 additions and 0 deletions
|
@ -80,6 +80,7 @@ in
|
|||
client.via = "sentinel";
|
||||
firewallRuleForNode.sentinel.allowedTCPPorts = [
|
||||
80
|
||||
8080
|
||||
9000
|
||||
];
|
||||
};
|
||||
|
@ -88,6 +89,7 @@ in
|
|||
client.via = "ward";
|
||||
firewallRuleForNode.ward-web-proxy.allowedTCPPorts = [
|
||||
80
|
||||
8080
|
||||
9000
|
||||
];
|
||||
};
|
||||
|
@ -173,6 +175,11 @@ in
|
|||
mode = "440";
|
||||
group = "ente";
|
||||
};
|
||||
age.secrets.ente-smtp-password = {
|
||||
generator.script = "alnum";
|
||||
mode = "440";
|
||||
group = "ente";
|
||||
};
|
||||
|
||||
services.minio = {
|
||||
enable = true;
|
||||
|
@ -206,6 +213,15 @@ in
|
|||
rporigins = [ "https://${enteAccountsDomain}" ];
|
||||
};
|
||||
|
||||
# FIXME: blocked on https://github.com/ente-io/ente/issues/5958
|
||||
# smtp = {
|
||||
# host = config.repo.secrets.local.ente.mail.host;
|
||||
# port = 465;
|
||||
# email = config.repo.secrets.local.ente.mail.from;
|
||||
# username = config.repo.secrets.local.ente.mail.user;
|
||||
# password._secret = config.age.secrets.ente-smtp-password.path;
|
||||
# };
|
||||
|
||||
s3 = {
|
||||
use_path_style_urls = true;
|
||||
b2-eu-cen = {
|
||||
|
|
BIN
hosts/sire/secrets/ente/local.nix.age
Normal file
BIN
hosts/sire/secrets/ente/local.nix.age
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue