tangled
alpha
login
or
join now
ptr.pet
/
ark
3
fork
atom
nix machine / user configurations
3
fork
atom
overview
issues
pulls
pipelines
make website be served on ptr.pet and poor.dog also
ptr.pet
3 months ago
9c7bf2e9
885389ce
verified
This commit was signed with the committer's
known signature
.
ptr.pet
SSH Key Fingerprint:
SHA256:Abmvag+juovVufZTxyWY8KcVgrznxvBjQpJesv071Aw=
+32
-26
3 changed files
expand all
collapse all
unified
split
_sources
generated.json
generated.nix
hosts
trimounts
modules
website.nix
+3
-3
_sources/generated.json
···
32
32
"fetchSubmodules": false,
33
33
"leaveDotGit": false,
34
34
"name": null,
35
35
-
"rev": "f79ac2a83647e8535511e33feb32fe5525f3ea74",
36
36
-
"sha256": "sha256-6WHoN48jfXJy95E/NHCBD6QdHLEXE6dsxtGAWsz3s4w=",
35
35
+
"rev": "00bc18c0a7c74fcf3a8f0ede70e5ee3f3f7d7797",
36
36
+
"sha256": "sha256-4TbxOa4V13/WspjKyfKDguKoIDVKRogOa+Rl0bSg2/U=",
37
37
"sparseCheckout": [],
38
38
"type": "git",
39
39
"url": "https://tangled.org/@ptr.pet/endpoint"
40
40
},
41
41
-
"version": "f79ac2a83647e8535511e33feb32fe5525f3ea74"
41
41
+
"version": "00bc18c0a7c74fcf3a8f0ede70e5ee3f3f7d7797"
42
42
},
43
43
"clickee-proxy": {
44
44
"cargoLocks": null,
+3
-3
_sources/generated.nix
···
15
15
};
16
16
blog = {
17
17
pname = "blog";
18
18
-
version = "f79ac2a83647e8535511e33feb32fe5525f3ea74";
18
18
+
version = "00bc18c0a7c74fcf3a8f0ede70e5ee3f3f7d7797";
19
19
src = fetchgit {
20
20
url = "https://tangled.org/@ptr.pet/endpoint";
21
21
-
rev = "f79ac2a83647e8535511e33feb32fe5525f3ea74";
21
21
+
rev = "00bc18c0a7c74fcf3a8f0ede70e5ee3f3f7d7797";
22
22
fetchSubmodules = false;
23
23
deepClone = false;
24
24
leaveDotGit = false;
25
25
sparseCheckout = [ ];
26
26
-
sha256 = "sha256-6WHoN48jfXJy95E/NHCBD6QdHLEXE6dsxtGAWsz3s4w=";
26
26
+
sha256 = "sha256-4TbxOa4V13/WspjKyfKDguKoIDVKRogOa+Rl0bSg2/U=";
27
27
};
28
28
date = "2025-12-01";
29
29
};
+26
-20
hosts/trimounts/modules/website.nix
···
14
14
gazesys-modules = modules;
15
15
};
16
16
port = 3003;
17
17
+
vhostConfig = {
18
18
+
locations."/".proxyPass = "http://localhost:${toString port}";
19
19
+
locations."/annoy/ws/" = {
20
20
+
proxyWebsockets = true;
21
21
+
proxyPass = "http://100.64.0.9:3111/";
22
22
+
extraConfig = ''
23
23
+
rewrite ^/annoy/ws/(.*) /$1 break;
24
24
+
'';
25
25
+
};
26
26
+
locations."/annoy/ws" = {
27
27
+
proxyWebsockets = true;
28
28
+
proxyPass = "http://100.64.0.9:3111/";
29
29
+
extraConfig = ''
30
30
+
rewrite ^/annoy/ws(.*) /$1 break;
31
31
+
'';
32
32
+
};
33
33
+
};
17
34
in
18
35
{
19
36
users.users.website = {
···
61
78
# Unit = "annoy-keep-alive.service";
62
79
# };
63
80
64
64
-
services.nginx.virtualHosts."gaze.systems" = {
65
65
-
locations."/".proxyPass = "http://localhost:${toString port}";
66
66
-
locations."/annoy/ws/" = {
67
67
-
proxyWebsockets = true;
68
68
-
proxyPass = "http://100.64.0.9:3111/";
69
69
-
extraConfig = ''
70
70
-
rewrite ^/annoy/ws/(.*) /$1 break;
71
71
-
'';
72
72
-
};
73
73
-
locations."/annoy/ws" = {
74
74
-
proxyWebsockets = true;
75
75
-
proxyPass = "http://100.64.0.9:3111/";
76
76
-
extraConfig = ''
77
77
-
rewrite ^/annoy/ws(.*) /$1 break;
78
78
-
'';
79
79
-
};
80
80
-
};
81
81
+
services.nginx.virtualHosts."gaze.systems" = vhostConfig;
82
82
+
services.nginx.virtualHosts."ptr.pet" = vhostConfig;
83
83
+
services.nginx.virtualHosts."poor.dog" = vhostConfig;
81
84
82
82
-
services.nginx.virtualHosts."poor.dog" = {
83
83
-
locations."/".return = "301 https://gaze.systems$request_uri";
84
84
-
};
85
85
+
# services.nginx.virtualHosts."poor.dog" = {
86
86
+
# locations."=/".return = "301 https://gaze.systems$request_uri";
87
87
+
# };
88
88
+
# services.nginx.virtualHosts."ptr.pet" = {
89
89
+
# locations."=/".return = "301 https://gaze.systems$request_uri";
90
90
+
# };
85
91
}