blob: 5fb6b6a57f74f0a918684d34380c6ef816d8dc88 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
{config, ...}: {
services.etebase-server = {
enable = true;
port = 8001;
settings = {
global.secret_file = "${config.age.secrets.etebase-server.path}";
allowed_hosts.allowed_host1 = "127.0.0.1";
};
};
services.nginx = {
enable = true;
recommendedTlsSettings = true;
recommendedOptimisation = true;
recommendedGzipSettings = true;
recommendedProxySettings = true;
virtualHosts = {
"etebase.vhack.eu" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:8001";
extraConfig = ''
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
'';
};
serverAliases = [
"dav.vhack.eu"
];
};
};
};
}
|