mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-11 17:54:08 -05:00
acme plus bar assistant ssl enable
This commit is contained in:
parent
1d2e865638
commit
49c0239b48
2 changed files with 19 additions and 19 deletions
|
|
@ -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" = {};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue