Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dns/nixos.org.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ D("nixos.org",
A("caliban", "65.109.26.213"),
AAAA("caliban", "2a01:4f9:5a:186c::2"),
CNAME("chat", "caliban"),
CNAME("debuginfod", "caliban"),
CNAME("live", "caliban"),
CNAME("matrix", "caliban"),
CNAME("survey", "caliban"),
Expand Down
1 change: 1 addition & 0 deletions non-critical-infra/hosts/caliban/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
inputs.srvos.nixosModules.hardware-hetzner-online-amd
../../../modules/rasdaemon.nix
../../modules/common.nix
../../modules/debuginfod
../../modules/first-time-contribution-tagger.nix
../../modules/backup.nix
../../modules/element-web.nix
Expand Down
23 changes: 23 additions & 0 deletions non-critical-infra/modules/debuginfod/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
imports = [
../nginx.nix
];

services.nixseparatedebuginfod.enable = true;

services.nginx.virtualHosts."debuginfod.nixos.org" = {
enableACME = true;
forceSSL = true;

locations."= /" = { };

locations."= /index.html" = {
alias = ./index.html;
};

locations."/" = {
proxyPass = "http://127.0.0.1:1949";
index = "index.html";
};
};
}
77 changes: 77 additions & 0 deletions non-critical-infra/modules/debuginfod/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>debuginfod.nixos.org</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="stylesheet"
href="https://nixos.org/bootstrap/css/bootstrap.min.css"
/>
<link
rel="stylesheet"
href="https://nixos.org/bootstrap/css/bootstrap-responsive.min.css"
/>
<style>
body {
padding-top: 0;
margin-top: 4em;
margin-bottom: 4em;
}
body > div {
max-width: 800px;
}
p {
text-align: center;
}
pre {
max-width: 450px;
margin: auto;
}
.cache {
font-style: italic;
}
</style>
</head>
<body>
<div class="container jumbotron">
<div class="jumbotron">
<p class="lead">
<a href="https://nixos.org/nixos">
<img
src="https://nixos.org/logo/nixos-hires.png"
width="500px"
alt="logo"
/>
</a>
</p>

<p class="lead">
<code>https://debuginfod.nixos.org/</code> provides access to debug
symbols and derivation source code for debuggers supporting the
debuginfod protocol. Debug symbols are provided for all derivations
that enable the `separateDebugInfo` flag.
</p>
<p>
<pre>export DEBUGINFOD_URLS=https://debuginfod.nixos.org</pre>
</p>
</div>
<hr />
<div class="help">
<p>
If you are having trouble, please reach out to the
<a href="https://nixos.org/community/teams/infrastructure"
>infrastructure team</a>
</p>
<p>
For questions, or support, <a
href="https://nixos.org/nixos/support.html"
>
the support page</a> from the NixOS website describes how to get in
touch.
</p>
</div>
</div>
</body>
</html>