refactor(eientei)!: migrate library configuration
This commit is contained in:
parent
57549b647e
commit
1ee4164f83
10 changed files with 52 additions and 103 deletions
36
spec/eientei/nginx.nix
Normal file
36
spec/eientei/nginx.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
|
||||
# enable all recommended settings
|
||||
recommendedTlsSettings = true;
|
||||
recommendedOptimisation = true;
|
||||
recommendedGzipSettings = true;
|
||||
recommendedProxySettings = true;
|
||||
|
||||
# set a reasonable default
|
||||
clientMaxBodySize = "64m";
|
||||
|
||||
virtualHosts = {
|
||||
"_" = {
|
||||
addSSL = true;
|
||||
useACMEHost = ".514fpv.io";
|
||||
extraConfig = "return 444;";
|
||||
};
|
||||
|
||||
"home.514fpv.io" = {
|
||||
useACMEHost = ".514fpv.io";
|
||||
addSSL = true;
|
||||
extraConfig = ''
|
||||
proxy_buffering off;
|
||||
'';
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:8123";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue