2024-11-20 05:46:39 +01:00
|
|
|
{ ... }:
|
2024-11-20 05:46:39 +01:00
|
|
|
{
|
2024-11-20 05:46:39 +01:00
|
|
|
imports = [
|
|
|
|
./virtualHosts
|
|
|
|
];
|
|
|
|
|
2024-11-20 05:46:39 +01:00
|
|
|
services.nginx = {
|
|
|
|
enable = true;
|
2024-11-20 05:46:39 +01:00
|
|
|
|
2024-11-20 05:46:40 +01:00
|
|
|
eventsConfig = ''
|
|
|
|
worker_connections 1024;
|
|
|
|
'';
|
|
|
|
|
2024-11-20 05:46:39 +01:00
|
|
|
streamConfig = ''
|
|
|
|
map $ssl_preread_server_name $address {
|
|
|
|
anisync.grzb.de 127.0.0.1:8443;
|
2024-11-20 05:46:40 +01:00
|
|
|
birdsite.nekover.se 10.202.41.107:8443;
|
2024-11-20 05:46:39 +01:00
|
|
|
cloud.nekover.se 10.202.41.122:8443;
|
2024-11-20 05:46:39 +01: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;
|
2024-11-20 05:46:39 +01:00
|
|
|
hydra.nekover.se 10.202.41.121:8443;
|
2024-11-20 05:46:40 +01:00
|
|
|
matrix.nekover.se 10.202.41.112:8443;
|
2024-11-20 05:46:39 +01:00
|
|
|
mewtube.nekover.se 127.0.0.1:8443;
|
|
|
|
nekover.se 127.0.0.1:8443;
|
|
|
|
nextcloud.grzb.de 127.0.0.1:8443;
|
2024-11-20 05:46:39 +01:00
|
|
|
nix-cache.nekover.se 10.202.41.121:8443;
|
2024-11-20 05:46:39 +01: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;
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
|
2024-11-20 05:46:40 +01:00
|
|
|
appendConfig = ''
|
|
|
|
worker_processes auto;
|
|
|
|
'';
|
|
|
|
|
2024-11-20 05:46:39 +01:00
|
|
|
appendHttpConfig = ''
|
|
|
|
add_header Strict-Transport-Security "max-age=63072000" always;
|
|
|
|
'';
|
2024-11-20 05:46:39 +01:00
|
|
|
};
|
|
|
|
}
|