[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/02: hydra: lakeside: Update configuration.
From: |
Christopher Baines |
Subject: |
02/02: hydra: lakeside: Update configuration. |
Date: |
Sat, 7 May 2022 07:00:44 -0400 (EDT) |
cbaines pushed a commit to branch master
in repository maintenance.
commit 3d4c747e620690839abf6f8238a02adb47c49b93
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Sat May 7 11:58:02 2022 +0100
hydra: lakeside: Update configuration.
* hydra/nginx/html/lakeside/index.html: New file.
* hydra/lakeside.scm (%nginx-server-blocks): Have NGinx listen on IPv6
and serve the index.html file.
---
hydra/lakeside.scm | 8 +--
hydra/nginx/html/lakeside/index.html | 122 +++++++++++++++++++++++++++++++++++
2 files changed, 126 insertions(+), 4 deletions(-)
diff --git a/hydra/lakeside.scm b/hydra/lakeside.scm
index 7751d8a..064eb49 100644
--- a/hydra/lakeside.scm
+++ b/hydra/lakeside.scm
@@ -64,8 +64,8 @@
(list
(nginx-server-configuration
(server-name '("lakeside.guix.gnu.org"))
- (listen '("80"))
- (root "/var/www")
+ (listen '("80" "[::]:80"))
+ (root (local-file "nginx/html/lakeside" #:recursive? #t))
(locations
(append
common-locations
@@ -76,8 +76,8 @@
(nginx-server-configuration
(server-name '("lakeside.guix.gnu.org"))
- (listen '("443 ssl"))
- (root "/var/www")
+ (listen '("443 ssl" "[::]:443 ssl"))
+ (root (local-file "nginx/html/lakeside" #:recursive? #t))
(ssl-certificate
"/etc/letsencrypt/live/lakeside.guix.gnu.org/fullchain.pem")
(ssl-certificate-key
diff --git a/hydra/nginx/html/lakeside/index.html
b/hydra/nginx/html/lakeside/index.html
new file mode 100644
index 0000000..e69d92f
--- /dev/null
+++ b/hydra/nginx/html/lakeside/index.html
@@ -0,0 +1,122 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>lakeside.guix.gnu.org</title>
+ <style type="text/css">
+ body {
+ margin: 0;
+ padding: 0 0 3em 1em;
+ font-family: sans-serif;
+ }
+ .bod {
+ margin: auto;
+ max-width: 70rem;
+ padding: 0 1rem;
+ }
+ .asterisk {
+ font-style: italic;
+ font-size: small;
+ text-align: right;
+ }
+ .asterisk a {
+ text-decoration: none;
+ }
+ .asterisk a:hover {
+ text-decoration: underline;
+ }
+ a.totop {
+ float: right;
+ text-decoration: none !important;
+ color: transparent !important;
+ }
+ a.totop:hover {
+ color: #999 !important;
+ }
+ a.totop::after {
+ content: " ↑";
+ font-weight: bold;
+ color: #999 !important;
+ }
+ .feat { background-color: #222;
+ color: #fff;
+ margin-top: 5em;
+ padding: 1em 0 2.5em 0;
+ }
+ .feat a {
+ color: #fff;
+ }
+ .feat code {
+ background-color: #111;
+ }
+ h2 {
+ margin: 1em 0;
+ padding-top: 1em;
+ }
+ p, ol, ul, dl {
+ margin: 1.6em 0;
+ line-height: 1.8em;
+ }
+ a { color: #333; }
+ a:hover { text-decoration: underline; }
+ a:img { border: none; }
+ code {
+ padding: .8ex;
+ background-color: #333;
+ border-radius: .5ex;
+ font-size: 110%;
+ color: #fff; }
+ code a { color: #fff; }
+ dl { margin-left: 2em; }
+ dt { font-weight: bold; }
+ dd { margin: 1ex 0 2em 1em; }
+ li { margin-top: 1ex; }
+ a:hover .logo {
+ opacity: .8;
+ }
+ .alert {
+ position: fixed;
+ left: 0;
+ top: 0;
+ width: 100%;
+ margin: 0;
+ padding: .5ex;
+ color: #fff;
+ background: #c00;
+ font-size: large;
+ box-shadow: 0 .1em 1em rgba(0,0,0,1);
+ text-align: center;
+ z-index: 10;
+ }
+ .alert:before {
+ content: "\26A0 ";
+ font-size: large;
+ }
+ .alert.good {
+ color: #fff;
+ background: #0c0;
+ }
+ .alert.good:before {
+ content: none;
+ }
+ </style>
+ </head>
+ <body>
+ <img
+ src="https://guix.gnu.org/static/base/img/Guix.png"
+ style="display:block; margin: 0 auto 1em auto" />
+ <h1>lakeside.guix.gnu.org</h1>
+
+ <p>
+ This is a
+ <a href="https://guix.gnu.org/manual/en/html_node/Substitutes.html"
+ target="_blank">substitute server</a>
+ for <a href="https://guix.gnu.org/"
+ target="_blank">Guix</a>.
+ </p>
+
+ <p>
+ A mirror of
+ <a href="https://bordeaux.guix.gnu.org/">bordeaux.guix.gnu.org</a>.
+ </p>
+ </body>
+</html>