1
1
Fork 0

Pull out url into variable

Bill Ewanick 2023-09-26 14:09:11 -04:00
parent 18e225c454
commit 97419b2294
1 changed files with 4 additions and 3 deletions

View File

@ -1,11 +1,12 @@
let baseUrl = "git.ewanick.com";
{
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 +18,7 @@
services.caddy = {
enable = true;
virtualHosts = {
"git.ewanick.com" = {
baseUrl = {
extraConfig = ''
reverse_proxy localhost:3000
'';