25 lines
602 B
Nix
25 lines
602 B
Nix
{ config, pkgs, ... }: {
|
|
imports = [ ../nginx.nix ];
|
|
services.nginx = {
|
|
virtualHosts = {
|
|
"search.cyplo.dev" = {
|
|
forceSSL = true;
|
|
enableACME = true;
|
|
extraConfig = ''
|
|
access_log /dev/null;
|
|
proxy_connect_timeout 90s;
|
|
proxy_send_timeout 90s;
|
|
proxy_read_timeout 90s;
|
|
proxy_busy_buffers_size 512k;
|
|
proxy_buffers 4 512k;
|
|
proxy_buffer_size 256k;
|
|
'';
|
|
locations."/" = {
|
|
proxyPass = "http://bolty:8888";
|
|
proxyWebsockets = true;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
}
|