37 lines
1018 B
Nix
37 lines
1018 B
Nix
{config, ...}: {
|
|
services.outline = {
|
|
enable = true;
|
|
port = 3031;
|
|
publicUrl = "https://wiki.az-gruppe.com";
|
|
databaseUrl = "postgresql://outline:outline@127.0.0.1:5432/outline";
|
|
storage = {
|
|
storageType = "s3";
|
|
region = "eu-central";
|
|
uploadBucketUrl = "https://nbg1.your-objectstorage.com";
|
|
uploadBucketName = "az-wiki";
|
|
secretKeyFile = config.age.secrets.hetzner-s3-az-intern-secret-key.path;
|
|
accessKey = "CRT7V4HR5CG9NHICD2WW";
|
|
};
|
|
};
|
|
systemd.services.outline.serviceConfig = {
|
|
EnvironmentFile = ["${config.age.secrets.outline-env.path}"];
|
|
};
|
|
# Traefik configuration specific to littlelink
|
|
services.traefik.dynamicConfigOptions.http = {
|
|
services.outline.loadBalancer.servers = [
|
|
{
|
|
url = "http://localhost:3031/";
|
|
}
|
|
];
|
|
|
|
routers.outline = {
|
|
rule = "Host(`wiki.az-gruppe.com`)";
|
|
tls = {
|
|
certResolver = "ionos";
|
|
};
|
|
service = "outline";
|
|
entrypoints = "websecure";
|
|
};
|
|
};
|
|
}
|