2024-10-27 23:55:42 -05:00
|
|
|
{ lib, config, pkgs, ... }:
|
|
|
|
{
|
2024-11-05 14:58:06 -06:00
|
|
|
services.nginx.virtualHosts."nextcloud.beepboop.systems" = {
|
2024-10-27 23:55:42 -05:00
|
|
|
forceSSL = true;
|
|
|
|
enableACME = true;
|
|
|
|
locations."/" = {
|
2024-11-05 14:58:06 -06:00
|
|
|
proxyPass = "http://10.100.0.2:5028";
|
2024-10-27 23:55:42 -05:00
|
|
|
proxyWebsockets = true;
|
|
|
|
extraConfig = ''
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_buffering off;
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|