refactor domain declaration
This commit is contained in:
parent
84d99bde12
commit
2b09a4e8a2
1 changed files with 4 additions and 3 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
{ lib, pkgs, config, ... }:
|
{ lib, pkgs, config, ... }:
|
||||||
let
|
let
|
||||||
|
domain = "forge.tiqa.fr";
|
||||||
srv = config.services.forgejo.settings.server;
|
srv = config.services.forgejo.settings.server;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
@ -7,7 +8,7 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
recommendedGzipSettings = true;
|
recommendedGzipSettings = true;
|
||||||
|
|
||||||
virtualHosts.${config.services.forgejo.settings.server.DOMAIN} = {
|
virtualHosts.${domain} = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
|
|
@ -32,9 +33,9 @@ in
|
||||||
lfs.enable = true;
|
lfs.enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
server = {
|
server = {
|
||||||
DOMAIN = "forge.tiqa.fr";
|
DOMAIN = domain;
|
||||||
# You need to specify this to remove the port from URLs in the web UI.
|
# You need to specify this to remove the port from URLs in the web UI.
|
||||||
ROOT_URL = "https://${srv.DOMAIN}/";
|
ROOT_URL = "https://${domain}/";
|
||||||
HTTP_PORT = 3000;
|
HTTP_PORT = 3000;
|
||||||
};
|
};
|
||||||
# You can temporarily allow registration to create an admin user.
|
# You can temporarily allow registration to create an admin user.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue