Pull out url into variable
parent
18e225c454
commit
6b49cc94ba
|
@ -1,11 +1,13 @@
|
|||
let baseUrl = "git.ewanick.com";
|
||||
in
|
||||
{
|
||||
services.gitea = {
|
||||
enable = true;
|
||||
appName = "Bill's Gitea server, hosted on Linode using NixOS";
|
||||
settings = {
|
||||
server = {
|
||||
DOMAIN = "git.ewanick.com";
|
||||
ROOT_URL = "https://git.ewanick.com/";
|
||||
DOMAIN = baseUrl;
|
||||
ROOT_URL = "https://${baseUrl}/";
|
||||
HTTP_PORT = 3000;
|
||||
};
|
||||
service = {
|
||||
|
@ -17,7 +19,7 @@
|
|||
services.caddy = {
|
||||
enable = true;
|
||||
virtualHosts = {
|
||||
"git.ewanick.com" = {
|
||||
"${baseUrl}" = {
|
||||
extraConfig = ''
|
||||
reverse_proxy localhost:3000
|
||||
'';
|
||||
|
|
Loading…
Reference in New Issue