forked from pub-solar/infra
Benjamin Yule Bädorf
0e89b7f210
This adds an nginx configuration for https://miom.space/. MiOM is a creative collective in Cologne that frequently hosts our hakken.irl hackathons. They're already using our cloud to organize. This service is a bit more specific than most pub.solar services and falls into a similar category as the obs-portal. On the old miom website all logging was turned off, we might want to do the same thing in nginx here as well then.
34 lines
616 B
Nix
34 lines
616 B
Nix
{ ... }:
|
|
|
|
{
|
|
systemd.tmpfiles.rules = [
|
|
"d '/srv/www/miom.space' 0750 hakkonaut hakkonaut - -"
|
|
];
|
|
|
|
services.nginx.virtualHosts = {
|
|
"www.miom.space" = {
|
|
enableACME = true;
|
|
addSSL = true;
|
|
locations."/" = {
|
|
extraConfig = ''
|
|
return 301 https://miom.space$request_uri;
|
|
'';
|
|
};
|
|
};
|
|
|
|
"miom.space" = {
|
|
default = true;
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
|
|
locations = {
|
|
"/" = {
|
|
root = "/srv/www/miom.space";
|
|
index = "index.html";
|
|
tryFiles = "$uri $uri/ =404";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|