Switch from git.DOMAIN to code.DOMAIN
This commit is contained in:
parent
83eeb60424
commit
53b6633026
|
@ -24,7 +24,7 @@ respond "__ __ _
|
||||||
|
|
||||||
This is an in-progress replacement for tecosaur.com, done better.
|
This is an in-progress replacement for tecosaur.com, done better.
|
||||||
|
|
||||||
For now, you can find an increasing number of my projects on git.tecosaur.net,
|
For now, you can find an increasing number of my projects on code.tecosaur.net,
|
||||||
this includes the setup for this server, which is being constructed using:
|
this includes the setup for this server, which is being constructed using:
|
||||||
+ NixOS (with flakes and deploy-rs)
|
+ NixOS (with flakes and deploy-rs)
|
||||||
+ Caddy (web server)
|
+ Caddy (web server)
|
||||||
|
@ -65,8 +65,11 @@ reverse_proxy ${config.services.syncthing.guiAddress} {
|
||||||
file_server
|
file_server
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
virtualHosts."git.tecosaur.net".extraConfig =
|
|
||||||
(mkIf config.services.forgejo.enable {
|
(mkIf config.services.forgejo.enable {
|
||||||
|
virtualHosts."git.tecosaur.net".extraConfig = "redir https://code.tecosaur.net{uri} 301";
|
||||||
|
})
|
||||||
|
(mkIf config.services.forgejo.enable {
|
||||||
|
virtualHosts."code.tecosaur.net".extraConfig =
|
||||||
''
|
''
|
||||||
@not_tec {
|
@not_tec {
|
||||||
not path /tec/*
|
not path /tec/*
|
||||||
|
|
|
@ -31,15 +31,15 @@ in {
|
||||||
settings = {
|
settings = {
|
||||||
DEFAULT.APP_NAME = "Code by TEC";
|
DEFAULT.APP_NAME = "Code by TEC";
|
||||||
server = {
|
server = {
|
||||||
DOMAIN = "git.tecosaur.net";
|
DOMAIN = "code.tecosaur.net";
|
||||||
ROOT_URL = "https://git.tecosaur.net";
|
ROOT_URL = "https://code.tecosaur.net";
|
||||||
HTTP_ADDRESS = "0.0.0.0";
|
HTTP_ADDRESS = "0.0.0.0";
|
||||||
HTTP_PORT = 3000;
|
HTTP_PORT = 3000;
|
||||||
};
|
};
|
||||||
mailer = {
|
mailer = {
|
||||||
ENABLED = true;
|
ENABLED = true;
|
||||||
PROTOCOL = "smtp+startls";
|
PROTOCOL = "smtp+startls";
|
||||||
FROM = "forgejo@git.tecosaur.net";
|
FROM = "forgejo@code.tecosaur.net";
|
||||||
USER = "tec@tecosaur.net";
|
USER = "tec@tecosaur.net";
|
||||||
SMTP_ADDR = "smtp.fastmail.com:587";
|
SMTP_ADDR = "smtp.fastmail.com:587";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue