tangled
alpha
login
or
join now
koi.rip
/
dotfiles
0
fork
atom
my nixos dotfiles :3 (git.koi.rip mirror)
git.koi.rip/koi/dotfiles
linux
dotfiles
neovim
nixos
catppuccin
0
fork
atom
overview
issues
pulls
pipelines
seber: default virtual host
koi.rip
2 months ago
c3284273
920087a7
+24
-18
1 changed file
expand all
collapse all
unified
split
systems
seber
services
ebil-club.nix
+24
-18
systems/seber/services/ebil-club.nix
···
1
1
{ lib, pkgs, ... }:
2
2
3
3
let
4
4
+
tls = {
5
5
+
onlySSL = true;
6
6
+
sslCertificate = "/run/agenix/ssl-adamperkowski-cert";
7
7
+
sslCertificateKey = "/run/agenix/ssl-adamperkowski-key";
8
8
+
};
9
9
+
4
10
mkSite =
5
11
{
6
12
name,
···
13
19
14
20
home = "/var/ebil.club/${name}";
15
21
rootDir = "${home}/${defaultHost}";
16
16
-
17
17
-
tls = {
18
18
-
onlySSL = true;
19
19
-
sslCertificate = "/run/agenix/ssl-adamperkowski-cert";
20
20
-
sslCertificateKey = "/run/agenix/ssl-adamperkowski-key";
21
21
-
};
22
22
in
23
23
{
24
24
services.nginx.virtualHosts = {
···
80
80
})
81
81
];
82
82
83
83
-
services.nginx.virtualHosts."ebil.club" = {
84
84
-
locations = {
85
85
-
"/" = {
86
86
-
root = "/var/ebil.club/ebil.club";
87
87
-
index = "index.html";
88
88
-
extraConfig = "try_files $uri $uri/ =404;";
83
83
+
services.nginx.virtualHosts = {
84
84
+
"_" = {
85
85
+
locations."/".return = "307 https://ebil.club";
86
86
+
default = true;
87
87
+
}
88
88
+
// tls;
89
89
+
90
90
+
"ebil.club" = {
91
91
+
locations = {
92
92
+
"/" = {
93
93
+
root = "/var/ebil.club/ebil.club";
94
94
+
index = "index.html";
95
95
+
extraConfig = "try_files $uri $uri/ =404;";
96
96
+
};
97
97
+
"/discord".return = "302 https://discord.gg/mJAQHPJ9Eb";
89
98
};
90
90
-
"/discord".return = "302 https://discord.gg/mJAQHPJ9Eb";
91
91
-
};
92
92
-
extraConfig = "error_page 404 /404.html;";
93
93
-
onlySSL = true;
94
94
-
sslCertificate = "/run/agenix/ssl-adamperkowski-cert";
95
95
-
sslCertificateKey = "/run/agenix/ssl-adamperkowski-key";
99
99
+
extraConfig = "error_page 404 /404.html;";
100
100
+
}
101
101
+
// tls;
96
102
};
97
103
98
104
systemd.tmpfiles.rules = [