guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/02: nginx: mirror: Add /index.html.


From: Ludovic Courtès
Subject: 01/02: nginx: mirror: Add /index.html.
Date: Mon, 14 Mar 2016 15:00:37 +0000

civodul pushed a commit to branch master
in repository maintenance.

commit 5f27118a054a0e7788d36e69955bd06c8c03eb80
Author: Ludovic Courtès <address@hidden>
Date:   Mon Mar 14 15:54:09 2016 +0100

    nginx: mirror: Add /index.html.
---
 hydra/nginx/html/index.html       |   25 +++++++++++++++++++++++++
 hydra/nginx/mirror-locations.conf |    9 +++++++++
 2 files changed, 34 insertions(+), 0 deletions(-)

diff --git a/hydra/nginx/html/index.html b/hydra/nginx/html/index.html
new file mode 100644
index 0000000..c0a31d4
--- /dev/null
+++ b/hydra/nginx/html/index.html
@@ -0,0 +1,25 @@
+<html>
+  <head>
+    <title>GNU&nbsp;Guix Substitute Mirror</title>
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+    <meta name="keywords" content="GNU Guix, substitutes, mirror">
+  </head>
+
+  <body>
+    <h1>GNU&nbsp;Guix Substitute Mirror</h1>
+
+    <p>
+      Welcome!  This is your
+      fast&nbsp;&amp;&nbsp;friendly <a 
href="https://www.gnu.org/software/guix/";>GNU&nbsp;Guix</a>
+      mirror of the
+      <a 
href="https://www.gnu.org/software/guix/manual/html_node/Substitutes.html";>substitutes</a>
+      served
+      by <a href="https://hydra.gnu.org";><tt>hydra.gnu.org</tt></a>.
+    </p>
+    <p>
+      To use it, just run <tt>guix-daemon</tt> or other <tt>guix</tt>
+      commands
+      with <tt>--substitute-urls=https://mirror.guixsd.org</tt>.
+    </p>
+  </body>
+</html>
diff --git a/hydra/nginx/mirror-locations.conf 
b/hydra/nginx/mirror-locations.conf
index 70eb279..22b54d3 100644
--- a/hydra/nginx/mirror-locations.conf
+++ b/hydra/nginx/mirror-locations.conf
@@ -1,6 +1,15 @@
 # Configuration of the various locations being mirrored.
 # This file is meant to be included in the mirror configuration file.
 
+location = / {
+    # Make sure index.html lives in there.
+    root /var/www;
+}
+
+location = /index.html {
+    root /var/www;
+}
+
 location /nix-cache-info {
     proxy_pass http://hydra.gnu.org/nix-cache-info;
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]