Switch from git.DOMAIN to code.DOMAIN

This commit is contained in:
TEC 2024-02-17 01:27:56 +08:00
parent bf148cece1
commit d743d99d5a
Signed by: tec
SSH Key Fingerprint: SHA256:eobz41Mnm0/iYWBvWThftS0ElEs1ftBr6jamutnXc/A
2 changed files with 8 additions and 5 deletions

View File

@ -24,7 +24,7 @@ respond "__ __ _
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:
+ NixOS (with flakes and deploy-rs)
+ Caddy (web server)
@ -65,8 +65,11 @@ reverse_proxy ${config.services.syncthing.guiAddress} {
file_server
'';
})
virtualHosts."git.tecosaur.net".extraConfig =
(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 path /tec/*

View File

@ -31,15 +31,15 @@ in {
settings = {
DEFAULT.APP_NAME = "Code by TEC";
server = {
DOMAIN = "git.tecosaur.net";
ROOT_URL = "https://git.tecosaur.net";
DOMAIN = "code.tecosaur.net";
ROOT_URL = "https://code.tecosaur.net";
HTTP_ADDRESS = "0.0.0.0";
HTTP_PORT = 3000;
};
mailer = {
ENABLED = true;
PROTOCOL = "smtp+startls";
FROM = "forgejo@git.tecosaur.net";
FROM = "forgejo@code.tecosaur.net";
USER = "tec@tecosaur.net";
SMTP_ADDR = "smtp.fastmail.com:587";
};