mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
I don't know if i like this
This commit is contained in:
parent
c6a9144ffe
commit
1b62d16ddc
63 changed files with 369 additions and 294 deletions
|
|
@ -1,31 +0,0 @@
|
|||
{
|
||||
networking.firewall = {
|
||||
allowedUDPPorts = [ 24454 ];
|
||||
allowedTCPPorts = [
|
||||
25565
|
||||
25575
|
||||
];
|
||||
};
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
config = ''
|
||||
events {
|
||||
worker_connections 5048;
|
||||
}
|
||||
|
||||
stream {
|
||||
server {
|
||||
listen 25565;
|
||||
listen 25575;
|
||||
listen 24454;
|
||||
|
||||
resolver 8.8.8.8 ipv4=off;
|
||||
resolver_timeout 15s;
|
||||
|
||||
proxy_socket_keepalive on;
|
||||
proxy_pass ipv6.gerg-l.com:$server_port;
|
||||
}
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue