acme plus bar assistant ssl enable

This commit is contained in:
TheWanderingCrow 2025-02-02 17:19:22 -05:00
parent 1d2e865638
commit 49c0239b48
2 changed files with 19 additions and 19 deletions

View file

@ -28,6 +28,7 @@ lib.mkIf config.user.overseer.enable {
acceptTerms = true;
defaults = {
email = "infrastructure@wanderingcrow.net";
group = config.services.nginx.group;
dnsProvider = "route53";
credentialFiles = {
"AWS_SHARED_CREDENTIALS_FILE" = config.sops.templates."aws_shared_credentials".path;
@ -35,10 +36,7 @@ lib.mkIf config.user.overseer.enable {
environmentFile = config.sops.templates."aws_config".path;
};
certs = {
"home.wanderingcrow.net" = {};
"homebox.wanderingcrow.net" = {};
"bar.wanderingcrow.net" = {};
"bookstack.wanderingcrow.net" = {};
};
};
}

View file

@ -38,18 +38,20 @@ in
recommendedProxySettings = true;
virtualHosts = {
"bar.wanderingcrow.net" = {
locations ."/" = {
proxyPass = "http://10.88.0.5:8080";
};
};
"api.bar.wanderingcrow.net" = {
locations."/" = {
proxyPass = "http://10.88.0.4:8080";
};
};
"search.bar.wanderingcrow.net" = {
locations."/" = {
proxyPass = "http://10.88.0.3:7700";
forceSSL = true;
useACMEHost = "bar.wanderingcrow.net";
locations = {
"/search/" = {
proxyPass = "http://10.88.0.3:7700";
priority = 1;
};
"/api/" = {
proxyPass = "http://10.88.0.4:8080";
priority = 1;
};
"/" = {
proxyPass = "http://10.88.0.5:8080";
};
};
};
};
@ -96,8 +98,8 @@ in
extraOptions = ["--ip=10.88.0.4"];
environmentFiles = [config.sops.templates."bar_assistant-env".path];
environment = {
APP_URL = "http://api.bar.wanderingcrow.net";
MEILISEARCH_HOST = "http://search.bar.wanderingcrow.net";
APP_URL = "https://bar.wanderingcrow.net/api";
MEILISEARCH_HOST = "https://bar.wanderingcrow.net/search";
CACHE_DRIVER = "file";
SESSION_DRIVER = "file";
ALLOW_REGISTRATION = "true";
@ -109,8 +111,8 @@ in
extraOptions = ["--ip=10.88.0.5"];
ports = ["3001:8080"];
environment = {
API_URL = "http://api.bar.wanderingcrow.net";
MEILIESEARCH_URL = "http://search.bar.wanderingcrow.net";
API_URL = "https://bar.wanderingcrow.net/api";
MEILIESEARCH_URL = "https://bar.wanderingcrow.net/search";
};
};
};