Skip to content

Commit cc1c668

Browse files
committed
non-critical-infra: set up debuginfo server
1 parent 35fbe0c commit cc1c668

File tree

4 files changed

+102
-0
lines changed

4 files changed

+102
-0
lines changed

dns/nixos.org.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ D("nixos.org",
104104
A("caliban", "65.109.26.213"),
105105
AAAA("caliban", "2a01:4f9:5a:186c::2"),
106106
CNAME("chat", "caliban"),
107+
CNAME("debuginfod", "caliban"),
107108
CNAME("live", "caliban"),
108109
CNAME("matrix", "caliban"),
109110
CNAME("survey", "caliban"),

non-critical-infra/hosts/caliban/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
inputs.srvos.nixosModules.hardware-hetzner-online-amd
88
../../../modules/rasdaemon.nix
99
../../modules/common.nix
10+
../../modules/debuginfod
1011
../../modules/first-time-contribution-tagger.nix
1112
../../modules/backup.nix
1213
../../modules/element-web.nix
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
imports = [
3+
../nginx.nix
4+
];
5+
6+
services.nixseparatedebuginfod.enable = true;
7+
8+
services.nginx.virtualHosts."debuginfod.nixos.org" = {
9+
enableACME = true;
10+
forceSSL = true;
11+
12+
locations."= /" = { };
13+
14+
locations."= /index.html" = {
15+
alias = ./index.html;
16+
};
17+
18+
locations."/" = {
19+
proxyPass = "http://127.0.0.1:1949";
20+
index = "index.html";
21+
};
22+
};
23+
}
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<title>debuginfod.nixos.org</title>
5+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6+
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8+
<link
9+
rel="stylesheet"
10+
href="https://nixos.org/bootstrap/css/bootstrap.min.css"
11+
/>
12+
<link
13+
rel="stylesheet"
14+
href="https://nixos.org/bootstrap/css/bootstrap-responsive.min.css"
15+
/>
16+
<style>
17+
body {
18+
padding-top: 0;
19+
margin-top: 4em;
20+
margin-bottom: 4em;
21+
}
22+
body > div {
23+
max-width: 800px;
24+
}
25+
p {
26+
text-align: center;
27+
}
28+
pre {
29+
max-width: 450px;
30+
margin: auto;
31+
}
32+
.cache {
33+
font-style: italic;
34+
}
35+
</style>
36+
</head>
37+
<body>
38+
<div class="container jumbotron">
39+
<div class="jumbotron">
40+
<p class="lead">
41+
<a href="https://nixos.org/nixos">
42+
<img
43+
src="https://nixos.org/logo/nixos-hires.png"
44+
width="500px"
45+
alt="logo"
46+
/>
47+
</a>
48+
</p>
49+
50+
<p class="lead">
51+
<code>https://debuginfod.nixos.org/</code> provides access to debug
52+
symbols and derivation source code for debuggers supporting the
53+
debuginfod protocol. Debug symbols are provided for all derivations
54+
that enable the `separateDebugInfo` flag.
55+
</p>
56+
<p>
57+
<pre>export DEBUGINFOD_URLS=http://debuginfod.nixos.org</pre>
58+
</p>
59+
</div>
60+
<hr />
61+
<div class="help">
62+
<p>
63+
If you are having trouble, please reach out to the
64+
<a href="https://nixos.org/community/teams/infrastructure"
65+
>infrastructure team</a>
66+
</p>
67+
<p>
68+
For questions, or support, <a
69+
href="https://nixos.org/nixos/support.html"
70+
>
71+
the support page</a> from the NixOS website describes how to get in
72+
touch.
73+
</p>
74+
</div>
75+
</div>
76+
</body>
77+
</html>

0 commit comments

Comments
 (0)