Make Traefik and Forgejo communicate with each other!
This commit is contained in:
parent
4404dff982
commit
140d305a76
2 changed files with 22 additions and 6 deletions
|
|
@ -163,8 +163,8 @@ in {
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
server = {
|
server = {
|
||||||
DOMAIN = "git.prg.local";
|
DOMAIN = "git.prg-radio.org";
|
||||||
ROOT_URL = "http://${srv.DOMAIN}/";
|
ROOT_URL = "https://git.prg-radio.org/";
|
||||||
HTTP_PORT = 3000;
|
HTTP_PORT = 3000;
|
||||||
# SSH integration
|
# SSH integration
|
||||||
SSH_PORT = lib.head config.services.openssh.ports;
|
SSH_PORT = lib.head config.services.openssh.ports;
|
||||||
|
|
|
||||||
|
|
@ -186,8 +186,24 @@ in {
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
http.routers = {};
|
# HTTP Routers
|
||||||
http.services = {};
|
http.routers = {
|
||||||
|
forgejo = {
|
||||||
|
rule = "Host(`git.prg-radio.org`)";
|
||||||
|
service = "forgejo";
|
||||||
|
entryPoints = ["websecure"];
|
||||||
|
tls = {};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# HTTP Services
|
||||||
|
http.services = {
|
||||||
|
forgejo.loadBalancer = {
|
||||||
|
servers = [
|
||||||
|
{ url = "http://10.1.1.4:3000"; }
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -351,8 +367,8 @@ in {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Open ports in the firewall.
|
# Open ports in the firewall.
|
||||||
networking.firewall.allowedTCPPorts = [ 443 ];
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||||
networking.firewall.allowedUDPPorts = [ 443 ];
|
networking.firewall.allowedUDPPorts = [ 80 443 ];
|
||||||
# Or disable the firewall altogether.
|
# Or disable the firewall altogether.
|
||||||
# networking.firewall.enable = false;
|
# networking.firewall.enable = false;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue