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