mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-02-06 12:48:53 -05:00
Use magicport for forgejo
This commit is contained in:
parent
268ac42db2
commit
839ed66c07
1 changed files with 9 additions and 3 deletions
|
|
@ -1,10 +1,16 @@
|
|||
{ inputs, config, ... }:
|
||||
{
|
||||
lib,
|
||||
inputs,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
sopsFolder = builtins.toString inputs.nix-secrets + "/sops";
|
||||
port = builtins.toString (lib.custom.autoport "forgejo");
|
||||
in
|
||||
{
|
||||
services.caddy.virtualHosts."git.wanderingcrow.net".extraConfig = ''
|
||||
reverse_proxy http://localhost:3000
|
||||
reverse_proxy http://localhost:${builtins.toString port}
|
||||
'';
|
||||
|
||||
sops.secrets = {
|
||||
|
|
@ -33,7 +39,7 @@ in
|
|||
server = {
|
||||
DOMAIN = "git.wanderingcrow.net";
|
||||
ROOT_URL = "https://git.wanderingcrow.net";
|
||||
HTTP_PORT = 3000;
|
||||
HTTP_PORT = port;
|
||||
};
|
||||
service = {
|
||||
REGISTER_EMAIL_CONFIRM = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue