invoiceplane: make publicly available
This commit is contained in:
parent
5ee63e7e1c
commit
163e96c560
|
@ -6,6 +6,7 @@
|
||||||
./networking.nix
|
./networking.nix
|
||||||
./unbound.nix
|
./unbound.nix
|
||||||
./nginx.nix
|
./nginx.nix
|
||||||
|
./invoiceplane-proxy.nix
|
||||||
./wireguard.nix
|
./wireguard.nix
|
||||||
./email.nix
|
./email.nix
|
||||||
./website.nix
|
./website.nix
|
||||||
|
|
20
hosts/frikandel/invoiceplane-proxy.nix
Normal file
20
hosts/frikandel/invoiceplane-proxy.nix
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
flake,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
security.acme.certs = {
|
||||||
|
"invoicing.b12f.io" = {};
|
||||||
|
};
|
||||||
|
|
||||||
|
services.nginx.virtualHosts = {
|
||||||
|
"invoicing.b12f.io" = {
|
||||||
|
forceSSL = true;
|
||||||
|
useACMEHost = "invoicing.b12f.io";
|
||||||
|
# This redirects to invoiceplane on pie
|
||||||
|
locations."/".proxyPass = "https://invoicing.b12f.io";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -58,6 +58,9 @@
|
||||||
"\"b12f.io\" transparent"
|
"\"b12f.io\" transparent"
|
||||||
];
|
];
|
||||||
local-data = [
|
local-data = [
|
||||||
|
"\"droppie.b12f.io. 10800 IN A 10.13.12.3\""
|
||||||
|
"\"droppie.b12f.io. 10800 IN AAAA fd00:b12f:acab:1312:acab:3::\""
|
||||||
|
|
||||||
"\"droppie.b12f.io. 10800 IN A 10.13.12.3\""
|
"\"droppie.b12f.io. 10800 IN A 10.13.12.3\""
|
||||||
"\"droppie.b12f.io. 10800 IN AAAA fd00:b12f:acab:1312:acab:3::\""
|
"\"droppie.b12f.io. 10800 IN AAAA fd00:b12f:acab:1312:acab:3::\""
|
||||||
"\"backup.b12f.io. 10800 IN A 10.13.12.3\""
|
"\"backup.b12f.io. 10800 IN A 10.13.12.3\""
|
||||||
|
|
|
@ -33,7 +33,6 @@ in {
|
||||||
|
|
||||||
services.invoiceplane.webserver = "nginx";
|
services.invoiceplane.webserver = "nginx";
|
||||||
services.invoiceplane.sites."invoicing.b12f.io" = {
|
services.invoiceplane.sites."invoicing.b12f.io" = {
|
||||||
# nginx is not supported
|
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
database = {
|
database = {
|
||||||
|
|
|
@ -19,6 +19,8 @@
|
||||||
# server = "https://acme-staging-v02.api.letsencrypt.org/directory";
|
# server = "https://acme-staging-v02.api.letsencrypt.org/directory";
|
||||||
dnsProvider = "hostingde";
|
dnsProvider = "hostingde";
|
||||||
dnsPropagationCheck = true;
|
dnsPropagationCheck = true;
|
||||||
|
# We check via dns0 directly or unbound will be in our way
|
||||||
|
dnsResolver = "193.110.81.0";
|
||||||
credentialsFile = config.age.secrets."hosting-de-acme-secrets".path;
|
credentialsFile = config.age.secrets."hosting-de-acme-secrets".path;
|
||||||
group = "nginx";
|
group = "nginx";
|
||||||
webroot = null;
|
webroot = null;
|
||||||
|
|
|
@ -160,7 +160,7 @@ resource "hostingde_record" "b12f-invoicing" {
|
||||||
zone_id = hostingde_zone.b12f.id
|
zone_id = hostingde_zone.b12f.id
|
||||||
name = "invoicing.b12f.io"
|
name = "invoicing.b12f.io"
|
||||||
type = "CNAME"
|
type = "CNAME"
|
||||||
content = "pie.b12f.io"
|
content = "frikandel.b12f.io"
|
||||||
ttl = 300
|
ttl = 300
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue