Skip to content

Commit 6192513

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

File tree

4 files changed

+90
-0
lines changed

4 files changed

+90
-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: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
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 rel="stylesheet" href="https://nixos.org/bootstrap/css/bootstrap.min.css" />
9+
<link rel="stylesheet" href="https://nixos.org/bootstrap/css/bootstrap-responsive.min.css" />
10+
<style>
11+
body {
12+
padding-top: 0;
13+
margin-top: 4em;
14+
margin-bottom: 4em;
15+
}
16+
body > div {
17+
max-width: 800px;
18+
}
19+
p {
20+
text-align: center;
21+
}
22+
pre {
23+
max-width: 450px;
24+
margin: auto;
25+
};
26+
.cache {
27+
font-style: italic;
28+
}
29+
</style>
30+
</head>
31+
<body>
32+
<div class="container jumbotron">
33+
<div class="jumbotron">
34+
<p class="lead">
35+
<a href="https://nixos.org/nixos">
36+
<img src="https://nixos.org/logo/nixos-hires.png" width="500px" alt="logo" />
37+
</a>
38+
</p>
39+
40+
<p class="lead">
41+
<code>https://debuginfod.nixos.org/</code> provides
42+
access to debug symbols and derivation source code
43+
for debuggers supporting the debuginfod protocol.
44+
Debug symbols are provided for all derivations that
45+
enable the `separateDebugInfo` flag.
46+
</p>
47+
<p>
48+
<pre>export DEBUGINFOD_URLS=http://debuginfod.nixos.org</pre>
49+
</p>
50+
</div>
51+
<hr />
52+
<div class="help">
53+
<p>
54+
If you are having trouble, please reach out to the
55+
<a href="https://nixos.org/community/teams/infrastructure">infrastructure team</a>
56+
</p>
57+
<p>
58+
For questions, or support, <a href="https://nixos.org/nixos/support.html">
59+
the support page</a> from the NixOS website describes how to get in touch.
60+
</p>
61+
</div>
62+
</div>
63+
</body>
64+
</html>
65+

0 commit comments

Comments
 (0)