dotfiles/nixos/boxes/vpsfree1/search.nix

26 lines
602 B
Nix
Raw Normal View History

2023-04-17 14:11:38 +01:00
{ config, pkgs, ... }: {
imports = [ ../nginx.nix ];
2021-10-30 11:10:19 +01:00
services.nginx = {
virtualHosts = {
"search.cyplo.dev" = {
forceSSL = true;
enableACME = true;
extraConfig = ''
access_log /dev/null;
2023-05-08 17:08:49 +01:00
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;
2021-10-30 11:10:19 +01:00
'';
2023-05-08 17:08:49 +01:00
locations."/" = {
2023-05-08 18:27:49 +01:00
proxyPass = "http://bolty:8888";
2023-05-08 17:08:49 +01:00
proxyWebsockets = true;
};
2021-10-30 11:10:19 +01:00
};
};
};
}