loptland: nginx maybe this helps?

This commit is contained in:
Christoph Hollizeck 2024-11-06 20:11:50 +01:00
parent 35bf9f68a4
commit 74ab3c5a6b
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 1763BB530F50279E

View file

@ -16,8 +16,6 @@ in
{
imports = [ ./hardware.nix ];
environment.systemPackages = [ pkgs.forgejo-cli ];
sops.secrets = {
forgejo_db_password = {
inherit sopsFile;
@ -34,13 +32,22 @@ in
services.nginx = {
enable = true;
recommendedProxySettings = true;
virtualHosts = {
"git.${domainName}" = {
locations."/" = {
proxyPass = "http://localhost:${toString forgejoPort}/";
};
};
"${domainName}" = {
locations."/" = {
return = "404 This Site does not exist yet";
};
};
};
};
services.forgejo = {