2023-07-24 01:12:36 +02:00
|
|
|
{ ... }:
|
2023-07-18 17:23:46 +02:00
|
|
|
{
|
2023-07-24 01:12:36 +02:00
|
|
|
imports = [
|
|
|
|
./virtualHosts
|
|
|
|
];
|
|
|
|
|
2023-07-18 17:23:46 +02:00
|
|
|
services.nginx = {
|
|
|
|
enable = true;
|
2023-07-20 06:29:15 +02:00
|
|
|
|
|
|
|
streamConfig = ''
|
|
|
|
map $ssl_preread_server_name $address {
|
|
|
|
anisync.grzb.de 127.0.0.1:8443;
|
|
|
|
birdsite.nekover.se 127.0.0.1:8443;
|
2023-08-03 15:51:21 +02:00
|
|
|
cloud.nekover.se 10.202.41.122:8443;
|
2023-07-20 06:29:15 +02:00
|
|
|
element.nekover.se 127.0.0.1:8443;
|
|
|
|
gameserver.grzb.de 127.0.0.1:8443;
|
|
|
|
git.grzb.de 127.0.0.1:8443;
|
2023-07-24 01:12:36 +02:00
|
|
|
hydra.nekover.se 10.202.41.121:8443;
|
2023-07-20 06:29:15 +02:00
|
|
|
matrix.nekover.se 127.0.0.1:8443;
|
|
|
|
mewtube.nekover.se 127.0.0.1:8443;
|
|
|
|
nekover.se 127.0.0.1:8443;
|
|
|
|
nextcloud.grzb.de 127.0.0.1:8443;
|
2023-07-24 01:12:36 +02:00
|
|
|
nix-cache.nekover.se 10.202.41.121:8443;
|
2023-07-20 06:29:15 +02:00
|
|
|
social.nekover.se 127.0.0.1:8443;
|
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 0.0.0.0:443;
|
|
|
|
listen [::]:443;
|
|
|
|
proxy_pass $address;
|
|
|
|
ssl_preread on;
|
|
|
|
proxy_protocol on;
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
|
2023-07-24 01:12:36 +02:00
|
|
|
appendHttpConfig = ''
|
|
|
|
add_header Strict-Transport-Security "max-age=63072000" always;
|
|
|
|
'';
|
2023-07-18 17:23:46 +02:00
|
|
|
};
|
|
|
|
}
|