Compare commits

...

2 Commits

1 changed files with 24 additions and 14 deletions

View File

@ -187,12 +187,22 @@
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
root = "/var/www/beepboop.systems"; root = "/var/www/beepboop.systems";
locations."/" = {
extraConfig = ''
if ($request_uri ~ ^/(.*)\.html(\?|$)) {
return 302 /$1;
}
try_files $uri $uri.html $uri/ =404;
'';
};
}; };
services.nginx.virtualHosts."git.beepboop.systems" = { services.nginx.virtualHosts."git.beepboop.systems" = {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
locations."/".proxyPass = "http://localhost:3001"; locations."/" = {
proxyPass = "http://localhost:3001";
};
}; };
services.nginx.virtualHosts."bit.beepboop.systems" = { services.nginx.virtualHosts."bit.beepboop.systems" = {
@ -245,19 +255,19 @@
email = "nickforanick@protonmail.com"; email = "nickforanick@protonmail.com";
}; };
services.roundcube = { # services.roundcube = {
enable = true; # enable = true;
# this is the url of the vhost, not necessarily the same as the fqdn of # # this is the url of the vhost, not necessarily the same as the fqdn of
# the mailserver # # the mailserver
hostName = "cube.beepboop.systems"; # hostName = "cube.beepboop.systems";
extraConfig = '' # extraConfig = ''
# starttls needed for authentication, so the fqdn required to match # # starttls needed for authentication, so the fqdn required to match
# the certificate # # the certificate
$config['smtp_server'] = "tls://${config.mailserver.fqdn}"; # $config['smtp_server'] = "tls://${config.mailserver.fqdn}";
$config['smtp_user'] = "%u"; # $config['smtp_user'] = "%u";
$config['smtp_pass'] = "%p"; # $config['smtp_pass'] = "%p";
''; # '';
}; # };
services.nginx.virtualHosts."roundcube.beepboop.systems" = { services.nginx.virtualHosts."roundcube.beepboop.systems" = {
forceSSL = true; forceSSL = true;