-
Notifications
You must be signed in to change notification settings - Fork 1
/
nginx.nix
51 lines (51 loc) · 1.35 KB
/
nginx.nix
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
let
authelia-extras = import ./authelia-extras.nix;
in
{
services.nginx.enable = true;
services.nginx.virtualHosts."stag0.nyc.sitblueprint.com" = {
forceSSL = true;
enableACME = true;
root = "/var/www/";
};
services.nginx.virtualHosts."auth.api.sitblueprint.com" = {
forceSSL = true;
enableACME = true;
extraConfig = authelia-extras.authelia-location;
locations."/" = {
proxyPass = "http://10.10.1.2:8080";
extraConfig = authelia-extras.authelia-auth;
};
};
services.nginx.virtualHosts."admin.api.sitblueprint.com" = {
forceSSL = true;
enableACME = true;
extraConfig = authelia-extras.authelia-location;
locations."/" = {
proxyPass = "http://10.10.1.2:8081";
extraConfig = authelia-extras.authelia-auth;
};
};
services.nginx.virtualHosts."admin.sitblueprint.com" = {
forceSSL = true;
enableACME = true;
extraConfig = authelia-extras.authelia-location;
locations."/" = {
proxyPass = "http://10.10.1.3:80";
extraConfig = authelia-extras.authelia-auth;
};
};
services.nginx.virtualHosts."aad.stag.sitblueprint.com" = {
forceSSL = true;
enableACME = true;
extraConfig = authelia-extras.authelia-location;
locations."/" = {
proxyPass = "http://10.10.2.3:3000";
extraConfig = authelia-extras.authelia-auth;
};
};
security.acme = {
acceptTerms = true;
defaults.email = "ezri@sitblueprint.com";
};
}