Compare commits

..

No commits in common. "e7b194948b1c41fb83c4f2144db607bbe40bf090" and "80d4030a4c43c54d4c212ca08578ad3941a824dc" have entirely different histories.

3 changed files with 15 additions and 30 deletions

View File

@ -161,7 +161,6 @@
security.acme = {
acceptTerms = true;
defaults.email = "acme.evict519@simplelogin.com";
certs."dylanblades.com".extraDomainNames = ["gitea.dylanblades.com"];
};
time.timeZone = "Europe/London";
@ -196,7 +195,6 @@
};
gitea = {
enable = true;
appName = "Gitea";
settings = {
server.DOMAIN = "gitea.dylanblades.com";
ui.DEFAULT_THEME = "gitea-dark";
@ -204,27 +202,20 @@
};
nginx = {
enable = true;
virtualHosts = {
"dylanblades.com" = {
forceSSL = true;
enableACME = true;
root = pkgs.my-site;
};
"gitea.dylanblades.com" = {
forceSSL = true;
useACMEHost = "dylanblades.com";
locations."/" = {
proxyPass = "http://localhost:3000";
extraConfig = ''
client_max_body_size 512M;
proxy_set_header Connection $http_connection;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
'';
};
virtualHosts."gitea.dylanblades.com" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:3000";
extraConfig = ''
client_max_body_size 512M;
proxy_set_header Connection $http_connection;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
'';
};
};
};
@ -234,10 +225,7 @@
environment = {
persistence."/persist" = {
hideMounts = true;
directories = [
"/var/lib/nixos"
"/var/lib/gitea"
];
directories = ["/var/lib/nixos"];
};
systemPackages = with pkgs; [
git

View File

@ -1,4 +1,3 @@
{pkgs}: {
my-vim = pkgs.callPackage ./my-vim {};
my-site = pkgs.callPackage ./my-site {};
}

View File

@ -1,2 +0,0 @@
{writeTextDir}:
writeTextDir "index.html" "my-site"