blob: 0250cc310c9b2027fe527cd42586676410e0c6d0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
{ config, pkgs, lib, ... }:
{
services = {
nginx = {
enable = true;
package = pkgs.nginxQuic;
recommendedProxySettings = true;
recommendedTlsSettings = true;
recommendedZstdSettings = true;
recommendedGzipSettings = true;
recommendedBrotliSettings = true;
recommendedOptimisation = true;
defaultMimeTypes = ../../../../modules/packages/nginx/mime.types;
appendConfig = ''
worker_processes 16;
'';
eventsConfig = ''
#use kqueue;
worker_connections 512;
'';
appendHttpConfig = ''
#sendfile on;
disable_symlinks off;
'';
upstreams = import ./matrix-upstreams.nix;
additionalModules = with pkgs.nginxModules; [
moreheaders
];
virtualHosts = {
"siliconheaven.thearcanebrony.net" = import ./thearcanebrony.net/siliconheaven.nix;
"lfs.thearcanebrony.net" = import ./thearcanebrony.net/lfs.nix;
"http.thearcanebrony.net" = import ./thearcanebrony.net/http.nix;
"thearcanebrony.net" = import ./thearcanebrony.net/root.nix;
"sentry.thearcanebrony.net" = import ./thearcanebrony.net/sentry.nix;
"awooradio.thearcanebrony.net" = import ./thearcanebrony.net/awooradio.nix;
"search.thearcanebrony.net" = import ./thearcanebrony.net/search.nix;
"git.thearcanebrony.net" = import ./thearcanebrony.net/git.nix;
"files.thearcanebrony.net" = import ./thearcanebrony.net/files.nix;
"spigotav.thearcanebrony.net" = import ./thearcanebrony.net/spigotav.nix;
"terra.thearcanebrony.net" = import ./thearcanebrony.net/terra.nix;
"vives.thearcanebrony.net" = import ./thearcanebrony.net/vives.nix;
"rory.gay" = import ./rory.gay/root.nix;
#"rory.boo" = import ./rory.gay/root.nix;
"lfs.rory.gay" = import ./rory.gay/lfs.nix;
"git.rory.gay" = import ./rory.gay/git.nix;
"cgit.rory.gay" = import ./rory.gay/cgit.nix;
#"tunnel.rory.boo" = import ./rory.boo/tunnel.nix;
"boorunav.com" = import ./boorunav.com/root.nix;
"catgirlsaresexy.com" = import ./catgirlsaresexy.com/root.nix;
"sugarcanemc.org" = import ./sugarcanemc.org/root.nix;
#"jitsi.rory.gay" = import ./rory.gay/jitsi.nix;
#matrix...
"conduit.rory.gay" = import ./rory.gay/conduit.nix;
"matrix.rory.gay" = import ./rory.gay/matrix.nix;
"pcpoc.rory.gay" = import ./rory.gay/pcpoc.nix;
"matrixunittests.rory.gay" = import ./rory.gay/matrixunittests.nix;
"mru.rory.gay" = import ./rory.gay/mru.nix;
#bots...
"0bottests.bots.rory.gay" = import ./rory.gay/bots.nix;
"catnipbot.bots.rory.gay" = import ./rory.gay/bots.nix;
"impulsyeeter.bots.rory.gay" = import ./rory.gay/bots.nix;
"omnibot.bots.rory.gay" = import ./rory.gay/bots.nix;
"yatopiawatchdog.bots.rory.gay" = import ./rory.gay/bots.nix;
"playground.bots.rory.gay" = import ./rory.gay/bots.nix;
"kinobot.bots.rory.gay" = import ./rory.gay/bots.nix;
"siliconbotpublic.bots.rory.gay" = import ./rory.gay/bots.nix;
"thearcanebot.bots.rory.gay" = import ./rory.gay/bots.nix;
"anonbot.bots.rory.gay" = import ./rory.gay/bots.nix;
"hericanbot.bots.rory.gay" = import ./rory.gay/bots.nix;
"siliconbot.bots.rory.gay" = import ./rory.gay/bots.nix;
"impulsbot.bots.rory.gay" = import ./rory.gay/bots.nix;
"studiobot.bots.rory.gay" = import ./rory.gay/bots.nix;
"carsnbots.bots.rory.gay" = import ./rory.gay/bots.nix;
"binsh.bots.rory.gay" = import ./rory.gay/bots.nix;
"fosscordbot.bots.rory.gay" = import ./rory.gay/bots.nix;
"sugarcanebot.bots.rory.gay" = import ./rory.gay/bots.nix;
"gradbot.bots.rory.gay" = import ./rory.gay/bots.nix;
};
};
};
systemd.services.nginx.serviceConfig = {
LimitNOFILE=5000000;
};
systemd.services.nginx.requires = [ "data.mount" ];
security.acme.acceptTerms = true;
security.acme.defaults.email = "root@thearcanebrony.net";
environment.systemPackages = with pkgs; [
#gitfs
];
}
|