nginx/miom: init miom.space website #116

Merged
b12f merged 2 commits from feat/miom.space into main 2024-02-25 21:42:04 +00:00
2 changed files with 45 additions and 0 deletions

View file

@ -0,0 +1,44 @@
{ ... }:
{
systemd.tmpfiles.rules = [
"d '/srv/www/miom.space' 0750 hakkonaut hakkonaut - -"
];
services.nginx.virtualHosts = {
"www.miom.space" = {
enableACME = true;
addSSL = true;
extraConfig = ''
error_log /dev/null;
access_log /dev/null;
error_log /dev/null;
access_log /dev/null;
``` error_log /dev/null; access_log /dev/null; ```
'';
locations."/" = {
extraConfig = ''
return 301 https://miom.space$request_uri;
'';
};
};
"miom.space" = {
default = true;
enableACME = true;
forceSSL = true;
extraConfig = ''
error_log /dev/null;
access_log /dev/null;
'';
locations = {
"/" = {
root = "/srv/www/miom.space";
index = "index.html";
tryFiles = "$uri $uri/ =404";
};
};
};
};
}

View file

@ -23,6 +23,7 @@
./apps/nginx-mastodon-files.nix ./apps/nginx-mastodon-files.nix
./apps/nginx-prometheus-exporters.nix ./apps/nginx-prometheus-exporters.nix
./apps/nginx-website.nix ./apps/nginx-website.nix
./apps/nginx-website-miom.nix
./apps/opensearch.nix ./apps/opensearch.nix
./apps/owncast.nix ./apps/owncast.nix
./apps/postgresql.nix ./apps/postgresql.nix