Homelab updates
- Change domain to opdavies.uk as this works with HTTPS/SSL. - Switch Nginx to Caddy.
This commit is contained in:
parent
f43069adac
commit
07fde36fb0
17 changed files with 98 additions and 64 deletions
|
@ -2,9 +2,6 @@
|
|||
|
||||
with lib;
|
||||
|
||||
let
|
||||
port = 2223;
|
||||
in
|
||||
{
|
||||
options.features.homelab.forgejo.enable = mkEnableOption "Enable forgejo";
|
||||
|
||||
|
@ -17,7 +14,8 @@ in
|
|||
|
||||
settings = {
|
||||
server = {
|
||||
HTTP_PORT = port;
|
||||
DOMAIN = "forgejo.opdavies.uk";
|
||||
HTTP_PORT = 2223;
|
||||
};
|
||||
|
||||
service = {
|
||||
|
@ -26,11 +24,10 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
nginx = {
|
||||
enable = true;
|
||||
caddy.virtualHosts."${config.services.forgejo.settings.server.DOMAIN}" = {
|
||||
useACMEHost = "opdavies.uk";
|
||||
|
||||
virtualHosts."forgejo.oliverdavies.uk".locations."/".proxyPass =
|
||||
"http://localhost:${toString port}/";
|
||||
extraConfig = "reverse_proxy localhost:${toString config.services.forgejo.settings.server.HTTP_PORT}";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue