Fix forgejo recipe, add caddy reverse proxy
This commit is contained in:
parent
98c8a60b10
commit
a2ca482b0b
1 changed files with 4 additions and 1 deletions
|
|
@ -4,10 +4,13 @@ with lib;
|
|||
let
|
||||
cfg = config.services.forgejo;
|
||||
srv = cfg.settings.server;
|
||||
{
|
||||
in {
|
||||
options.myModules.forgejo.enable = mkEnableOption "custom forgejo configuration";
|
||||
|
||||
config = mkIf config.myModules.forgejo.enable {
|
||||
services.caddy.virtualHosts."source.gleipnir.technology".extraConfig = ''
|
||||
reverse_proxy unix//var/run/forgejo/socket
|
||||
'';
|
||||
services.forgejo = {
|
||||
database.type = "postgres";
|
||||
enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue