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
|
|
|
|
2023-10-07 02:42:26 +02:00
|
|
|
eventsConfig = ''
|
|
|
|
worker_connections 1024;
|
|
|
|
'';
|
|
|
|
|
|
|
|
appendConfig = ''
|
|
|
|
worker_processes auto;
|
2023-10-10 15:21:16 +02:00
|
|
|
|
|
|
|
stream {
|
|
|
|
map $ssl_preread_server_name $address {
|
|
|
|
anisync.grzb.de 127.0.0.1:8443;
|
|
|
|
birdsite.nekover.se 10.202.41.107:8443;
|
|
|
|
cloud.nekover.se 10.202.41.122:8443;
|
|
|
|
element.nekover.se 127.0.0.1:8443;
|
2024-11-12 21:32:47 +01:00
|
|
|
fi.nekover.se 10.202.41.125:8443;
|
2023-10-10 15:21:16 +02:00
|
|
|
gameserver.grzb.de 127.0.0.1:8443;
|
|
|
|
git.grzb.de 127.0.0.1:8443;
|
2024-01-28 03:31:28 +01:00
|
|
|
git.nekover.se 10.202.41.106:8443;
|
2023-10-10 15:21:16 +02:00
|
|
|
hydra.nekover.se 10.202.41.121:8443;
|
2024-01-19 12:15:00 +01:00
|
|
|
id.nekover.se 10.202.41.124:8443;
|
2023-10-10 15:21:16 +02:00
|
|
|
matrix.nekover.se 10.202.41.112:8443;
|
|
|
|
mewtube.nekover.se 127.0.0.1:8443;
|
|
|
|
nekover.se 127.0.0.1:8443;
|
|
|
|
nix-cache.nekover.se 10.202.41.121:8443;
|
2023-10-16 11:22:48 +02:00
|
|
|
searx.nekover.se 10.202.41.105:8443;
|
2023-10-10 15:21:16 +02:00
|
|
|
social.nekover.se 10.202.41.104:8443;
|
|
|
|
}
|
|
|
|
server {
|
|
|
|
listen 0.0.0.0:443;
|
|
|
|
listen [::]:443;
|
|
|
|
proxy_pass $address;
|
|
|
|
ssl_preread on;
|
|
|
|
proxy_protocol on;
|
|
|
|
}
|
|
|
|
}
|
2023-10-07 02:42:26 +02:00
|
|
|
'';
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|