aboutsummaryrefslogtreecommitdiff
path: root/nixops/modules/websites
diff options
context:
space:
mode:
Diffstat (limited to 'nixops/modules/websites')
-rw-r--r--nixops/modules/websites/apache/theme/.htaccess9
-rw-r--r--nixops/modules/websites/apache/theme/footer.html31
-rw-r--r--nixops/modules/websites/apache/theme/header.html3
-rw-r--r--nixops/modules/websites/apache/theme/icons/archive.pngbin0 -> 551 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/audio.pngbin0 -> 554 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/authors.pngbin0 -> 492 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/bin.pngbin0 -> 551 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/blank.pngbin0 -> 227 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/bmp.pngbin0 -> 663 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/c.pngbin0 -> 554 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/calc.pngbin0 -> 506 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/cd.pngbin0 -> 757 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/copying.pngbin0 -> 699 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/cpp.pngbin0 -> 599 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/css.pngbin0 -> 592 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/deb.pngbin0 -> 671 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/default.pngbin0 -> 311 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/diff.pngbin0 -> 586 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/doc.pngbin0 -> 535 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/draw.pngbin0 -> 679 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/eps.pngbin0 -> 619 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/exe.pngbin0 -> 846 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/folder-home.pngbin0 -> 618 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/folder-open.pngbin0 -> 431 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/folder-page.pngbin0 -> 591 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/folder-parent-old.pngbin0 -> 494 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/folder-parent.pngbin0 -> 621 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/folder.pngbin0 -> 395 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/gif.pngbin0 -> 655 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/gzip.pngbin0 -> 551 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/h.pngbin0 -> 504 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/hpp.pngbin0 -> 530 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/html.pngbin0 -> 770 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/ico.pngbin0 -> 792 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/image.pngbin0 -> 671 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/install.pngbin0 -> 788 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/java.pngbin0 -> 658 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/jpg.pngbin0 -> 675 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/js.pngbin0 -> 540 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/json.pngbin0 -> 540 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/log.pngbin0 -> 423 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/makefile.pngbin0 -> 614 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/markdown.pngbin0 -> 627 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/package.pngbin0 -> 614 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/pdf.pngbin0 -> 799 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/php.pngbin0 -> 757 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/playlist.pngbin0 -> 610 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/png.pngbin0 -> 679 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/pres.pngbin0 -> 629 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/ps.pngbin0 -> 817 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/psd.pngbin0 -> 622 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/py.pngbin0 -> 743 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/rar.pngbin0 -> 621 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/rb.pngbin0 -> 781 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/readme.pngbin0 -> 384 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/rpm.pngbin0 -> 660 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/rss.pngbin0 -> 660 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/rtf.pngbin0 -> 627 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/script.pngbin0 -> 613 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/source.pngbin0 -> 586 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/sql.pngbin0 -> 510 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/tar.pngbin0 -> 406 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/tex.pngbin0 -> 677 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/text.pngbin0 -> 463 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/tiff.pngbin0 -> 654 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/unknown.pngbin0 -> 556 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/vcal.pngbin0 -> 556 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/video.pngbin0 -> 739 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/xml.pngbin0 -> 585 bytes
-rw-r--r--nixops/modules/websites/apache/theme/icons/zip.pngbin0 -> 617 bytes
-rw-r--r--nixops/modules/websites/apache/theme/style.css160
-rw-r--r--nixops/modules/websites/default.nix122
-rw-r--r--nixops/modules/websites/ftp/release.nix54
-rw-r--r--nixops/modules/websites/ftp/release_goaccess.conf99
-rw-r--r--nixops/modules/websites/ftp/temp.nix41
75 files changed, 505 insertions, 14 deletions
diff --git a/nixops/modules/websites/apache/theme/.htaccess b/nixops/modules/websites/apache/theme/.htaccess
new file mode 100644
index 0000000..f9e5472
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/.htaccess
@@ -0,0 +1,9 @@
1#
2# Apaxy by @adamwhitcroft
3#
4# For a full breakdown of the mod_autoindex module
5# http://apache.org/docs/2.2/mod/mod_autoindex.html
6#
7
8# Don't index this folder
9Options -Indexes
diff --git a/nixops/modules/websites/apache/theme/footer.html b/nixops/modules/websites/apache/theme/footer.html
new file mode 100644
index 0000000..57a2012
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/footer.html
@@ -0,0 +1,31 @@
1</div><!--/.wrapper-->
2
3<script type="text/javascript">
4// grab the 2nd child and add the parent class. tr:nth-child(2)
5document.getElementsByTagName('tr')[1].className = 'parent';
6// fix links when not adding a / at the end of the URI
7var uri = window.location.pathname.substr(1);
8if (uri.length > 0 && uri.substring(uri.length-1) != '/'){
9 var indexes = document.getElementsByClassName('indexcolname'),
10 i = indexes.length;
11 while (i--){
12 var a = indexes[i].getElementsByTagName('a')[0];
13 a.href = '/' + uri + '/' + a.getAttribute('href',2);
14 }
15}
16
17function getAjax(url, success) {
18 var xhr = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject('Microsoft.XMLHTTP');
19 xhr.open('GET', url);
20 xhr.onreadystatechange = function() {
21 if (xhr.readyState>3 && xhr.status==200)
22 success(xhr.responseText);
23 };
24 xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
25 xhr.send();
26 return xhr;
27}
28getAjax("title", function(data) {
29 document.getElementById('pagetitle').innerHTML = data;
30});
31</script>
diff --git a/nixops/modules/websites/apache/theme/header.html b/nixops/modules/websites/apache/theme/header.html
new file mode 100644
index 0000000..cbded6a
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/header.html
@@ -0,0 +1,3 @@
1<div class="wrapper">
2 <h1 id="pagetitle"></h1>
3<!-- we open the `wrapper` element here, but close it in the `footer.html` file -->
diff --git a/nixops/modules/websites/apache/theme/icons/archive.png b/nixops/modules/websites/apache/theme/icons/archive.png
new file mode 100644
index 0000000..99ae6fc
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/archive.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/audio.png b/nixops/modules/websites/apache/theme/icons/audio.png
new file mode 100644
index 0000000..a67618d
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/audio.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/authors.png b/nixops/modules/websites/apache/theme/icons/authors.png
new file mode 100644
index 0000000..78bf784
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/authors.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/bin.png b/nixops/modules/websites/apache/theme/icons/bin.png
new file mode 100644
index 0000000..ec2220b
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/bin.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/blank.png b/nixops/modules/websites/apache/theme/icons/blank.png
new file mode 100644
index 0000000..bef1f60
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/blank.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/bmp.png b/nixops/modules/websites/apache/theme/icons/bmp.png
new file mode 100644
index 0000000..c6f3044
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/bmp.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/c.png b/nixops/modules/websites/apache/theme/icons/c.png
new file mode 100644
index 0000000..12adaa3
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/c.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/calc.png b/nixops/modules/websites/apache/theme/icons/calc.png
new file mode 100644
index 0000000..a034367
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/calc.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/cd.png b/nixops/modules/websites/apache/theme/icons/cd.png
new file mode 100644
index 0000000..3a3ffbb
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/cd.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/copying.png b/nixops/modules/websites/apache/theme/icons/copying.png
new file mode 100644
index 0000000..83fa06e
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/copying.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/cpp.png b/nixops/modules/websites/apache/theme/icons/cpp.png
new file mode 100644
index 0000000..47e8b1e
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/cpp.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/css.png b/nixops/modules/websites/apache/theme/icons/css.png
new file mode 100644
index 0000000..15f7695
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/css.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/deb.png b/nixops/modules/websites/apache/theme/icons/deb.png
new file mode 100644
index 0000000..1b12d29
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/deb.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/default.png b/nixops/modules/websites/apache/theme/icons/default.png
new file mode 100644
index 0000000..6997229
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/default.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/diff.png b/nixops/modules/websites/apache/theme/icons/diff.png
new file mode 100644
index 0000000..5bef920
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/diff.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/doc.png b/nixops/modules/websites/apache/theme/icons/doc.png
new file mode 100644
index 0000000..5732f9b
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/doc.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/draw.png b/nixops/modules/websites/apache/theme/icons/draw.png
new file mode 100644
index 0000000..8f1da5c
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/draw.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/eps.png b/nixops/modules/websites/apache/theme/icons/eps.png
new file mode 100644
index 0000000..93736bb
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/eps.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/exe.png b/nixops/modules/websites/apache/theme/icons/exe.png
new file mode 100644
index 0000000..31299b7
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/exe.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/folder-home.png b/nixops/modules/websites/apache/theme/icons/folder-home.png
new file mode 100644
index 0000000..14fe20a
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/folder-home.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/folder-open.png b/nixops/modules/websites/apache/theme/icons/folder-open.png
new file mode 100644
index 0000000..2aa5cc7
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/folder-open.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/folder-page.png b/nixops/modules/websites/apache/theme/icons/folder-page.png
new file mode 100644
index 0000000..604f9ad
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/folder-page.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/folder-parent-old.png b/nixops/modules/websites/apache/theme/icons/folder-parent-old.png
new file mode 100644
index 0000000..b82d7a9
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/folder-parent-old.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/folder-parent.png b/nixops/modules/websites/apache/theme/icons/folder-parent.png
new file mode 100644
index 0000000..3c964f1
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/folder-parent.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/folder.png b/nixops/modules/websites/apache/theme/icons/folder.png
new file mode 100644
index 0000000..7c613e0
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/folder.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/gif.png b/nixops/modules/websites/apache/theme/icons/gif.png
new file mode 100644
index 0000000..01a2f2a
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/gif.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/gzip.png b/nixops/modules/websites/apache/theme/icons/gzip.png
new file mode 100644
index 0000000..99ae6fc
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/gzip.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/h.png b/nixops/modules/websites/apache/theme/icons/h.png
new file mode 100644
index 0000000..d3c7a9c
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/h.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/hpp.png b/nixops/modules/websites/apache/theme/icons/hpp.png
new file mode 100644
index 0000000..e5e52e2
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/hpp.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/html.png b/nixops/modules/websites/apache/theme/icons/html.png
new file mode 100644
index 0000000..2f94a78
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/html.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/ico.png b/nixops/modules/websites/apache/theme/icons/ico.png
new file mode 100644
index 0000000..82227e8
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/ico.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/image.png b/nixops/modules/websites/apache/theme/icons/image.png
new file mode 100644
index 0000000..add1c59
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/image.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/install.png b/nixops/modules/websites/apache/theme/icons/install.png
new file mode 100644
index 0000000..0a9c036
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/install.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/java.png b/nixops/modules/websites/apache/theme/icons/java.png
new file mode 100644
index 0000000..63b8683
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/java.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/jpg.png b/nixops/modules/websites/apache/theme/icons/jpg.png
new file mode 100644
index 0000000..a50c99b
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/jpg.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/js.png b/nixops/modules/websites/apache/theme/icons/js.png
new file mode 100644
index 0000000..af1a475
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/js.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/json.png b/nixops/modules/websites/apache/theme/icons/json.png
new file mode 100644
index 0000000..af1a475
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/json.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/log.png b/nixops/modules/websites/apache/theme/icons/log.png
new file mode 100644
index 0000000..02f1b9a
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/log.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/makefile.png b/nixops/modules/websites/apache/theme/icons/makefile.png
new file mode 100644
index 0000000..f99ea4c
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/makefile.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/markdown.png b/nixops/modules/websites/apache/theme/icons/markdown.png
new file mode 100644
index 0000000..25c8373
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/markdown.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/package.png b/nixops/modules/websites/apache/theme/icons/package.png
new file mode 100644
index 0000000..fb1343e
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/package.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/pdf.png b/nixops/modules/websites/apache/theme/icons/pdf.png
new file mode 100644
index 0000000..7408d8d
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/pdf.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/php.png b/nixops/modules/websites/apache/theme/icons/php.png
new file mode 100644
index 0000000..22c4df6
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/php.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/playlist.png b/nixops/modules/websites/apache/theme/icons/playlist.png
new file mode 100644
index 0000000..8d6f281
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/playlist.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/png.png b/nixops/modules/websites/apache/theme/icons/png.png
new file mode 100644
index 0000000..1fe1ec4
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/png.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/pres.png b/nixops/modules/websites/apache/theme/icons/pres.png
new file mode 100644
index 0000000..db195e9
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/pres.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/ps.png b/nixops/modules/websites/apache/theme/icons/ps.png
new file mode 100644
index 0000000..05f3ed9
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/ps.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/psd.png b/nixops/modules/websites/apache/theme/icons/psd.png
new file mode 100644
index 0000000..62718ee
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/psd.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/py.png b/nixops/modules/websites/apache/theme/icons/py.png
new file mode 100644
index 0000000..0aaffd1
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/py.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/rar.png b/nixops/modules/websites/apache/theme/icons/rar.png
new file mode 100644
index 0000000..8a0ff54
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/rar.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/rb.png b/nixops/modules/websites/apache/theme/icons/rb.png
new file mode 100644
index 0000000..c7db42f
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/rb.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/readme.png b/nixops/modules/websites/apache/theme/icons/readme.png
new file mode 100644
index 0000000..3ae48cd
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/readme.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/rpm.png b/nixops/modules/websites/apache/theme/icons/rpm.png
new file mode 100644
index 0000000..64699ac
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/rpm.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/rss.png b/nixops/modules/websites/apache/theme/icons/rss.png
new file mode 100644
index 0000000..a1130a1
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/rss.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/rtf.png b/nixops/modules/websites/apache/theme/icons/rtf.png
new file mode 100644
index 0000000..25c8373
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/rtf.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/script.png b/nixops/modules/websites/apache/theme/icons/script.png
new file mode 100644
index 0000000..1099b5f
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/script.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/source.png b/nixops/modules/websites/apache/theme/icons/source.png
new file mode 100644
index 0000000..5bef920
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/source.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/sql.png b/nixops/modules/websites/apache/theme/icons/sql.png
new file mode 100644
index 0000000..b3b1467
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/sql.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/tar.png b/nixops/modules/websites/apache/theme/icons/tar.png
new file mode 100644
index 0000000..bab3b6a
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/tar.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/tex.png b/nixops/modules/websites/apache/theme/icons/tex.png
new file mode 100644
index 0000000..1487b25
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/tex.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/text.png b/nixops/modules/websites/apache/theme/icons/text.png
new file mode 100644
index 0000000..1d48677
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/text.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/tiff.png b/nixops/modules/websites/apache/theme/icons/tiff.png
new file mode 100644
index 0000000..819e64c
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/tiff.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/unknown.png b/nixops/modules/websites/apache/theme/icons/unknown.png
new file mode 100644
index 0000000..b1dcc3f
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/unknown.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/vcal.png b/nixops/modules/websites/apache/theme/icons/vcal.png
new file mode 100644
index 0000000..3d81455
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/vcal.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/video.png b/nixops/modules/websites/apache/theme/icons/video.png
new file mode 100644
index 0000000..f92f7e1
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/video.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/xml.png b/nixops/modules/websites/apache/theme/icons/xml.png
new file mode 100644
index 0000000..83a83df
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/xml.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/icons/zip.png b/nixops/modules/websites/apache/theme/icons/zip.png
new file mode 100644
index 0000000..cc196c1
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/icons/zip.png
Binary files differ
diff --git a/nixops/modules/websites/apache/theme/style.css b/nixops/modules/websites/apache/theme/style.css
new file mode 100644
index 0000000..4d25c9f
--- /dev/null
+++ b/nixops/modules/websites/apache/theme/style.css
@@ -0,0 +1,160 @@
1/*------------------------------------*\
2 Apaxy
3 by @adamwhitcroft
4
5 Theme name: Apaxy
6 Theme author: @adamwhitcroft
7\*------------------------------------*/
8@import url('//fonts.googleapis.com/css?family=Open+Sans');
9/* Have to use @import for the font, as you can only specify a single stylesheet */
10* {
11 margin:0;
12 padding:0;
13 -webkit-box-sizing:border-box;
14 -moz-box-sizing:border-box;
15 box-sizing: border-box;
16}
17
18html {
19 min-height:100%;
20 border-top:10px solid #ECEEF1;
21 border-bottom:10px solid #ECEEF1;
22 color:#61666c;
23 font-weight:400;
24 font-size:1em;
25 font-family:'Open Sans', sans-serif;
26 line-height:2em;
27}
28body {
29 padding:20px;
30 -webkit-backface-visibility:hidden;
31}
32code {
33 font-family:consolas,monospace;
34}
35a {
36 color:#61666c;
37 text-decoration:none;
38}
39a, img {
40 border:none;
41 outline:none
42}
43a:hover {
44 color:#2a2a2a;
45}
46/*------------------------------------*\
47 Wrapper
48\*------------------------------------*/
49.wrapper {
50 margin:0 auto;
51 padding-top:20px;
52 max-width:80%;
53}
54/*------------------------------------*\
55 Demo block
56\*------------------------------------*/
57.block {
58 font-size:.875em;
59 margin:20px 0;
60 padding:20px;
61 color:#9099A3;
62}
63/*------------------------------------*\
64 Table (directory listing)
65\*------------------------------------*/
66table {
67 width:100%;
68 border-collapse:collapse;
69 font-size:.875em;
70}
71tr {
72 outline:0;
73 border:0;
74}
75tr:hover td {
76 background:#f6f6f6;
77}
78th {
79 text-align:left;
80 font-size:.75em;
81 padding-right:20px;
82}
83/* 2nd Column: Filename */
84th + th {
85 width:65%;
86}
87/* 3rd Column: Last Modified */
88th + th + th {
89}
90/* 4th Column: Size */
91th + th + th + th {
92 width:5%;
93}
94tr td:first-of-type {
95 padding-left:10px;
96 padding-right:10px;
97}
98td {
99 padding:5px 0;
100 outline:0;
101 border:0;
102 border-bottom:1px solid #edf1f5;
103 vertical-align:middle;
104 text-align:left;
105 -webkit-transition:background 300ms ease;
106 -moz-transition:background 300ms ease;
107 -ms-transition:background 300ms ease;
108 -o-transition:background 300ms ease;
109 transition:background 300ms ease;
110}
111td a{
112 display: block;
113}
114tr.parent a[href^="/"] {
115 color:#9099A3;
116}
117 .parent a[href^="/"]:hover {
118 color:#2281d0;
119 }
120/*------------------------------------*\
121 Footer
122\*------------------------------------*/
123.footer {
124 text-align:center;
125 font-size:.75em;
126}
127
128h1#pagetitle {
129 text-align: center;
130}
131tr.parent a[href="/"]{
132 display: none;
133}
134
135tr.indexhead {
136 visibility: hidden;
137}
138
139th.indexcollastmod, td.indexcollastmod, th.indexcolsize, td.indexcolsize {
140 visibility: hidden;
141}
142
143.instructions a {
144 text-decoration: underline;
145}
146
147.instructions h2 {
148 margin-top: 10px;
149}
150.instructions em.important:before {
151 content: "âš  Important âš  ";
152 color: red;
153}
154.instructions pre {
155 width: 50em;
156 padding: 10px 15px;
157 display: table;
158 border: 1px inset black;
159 line-height: 1em;
160}
diff --git a/nixops/modules/websites/default.nix b/nixops/modules/websites/default.nix
index 4c9c7fe..8c4380c 100644
--- a/nixops/modules/websites/default.nix
+++ b/nixops/modules/websites/default.nix
@@ -98,6 +98,8 @@ in
98 ./ftp/florian.nix 98 ./ftp/florian.nix
99 ./ftp/denisejerome.nix 99 ./ftp/denisejerome.nix
100 ./ftp/immae.nix 100 ./ftp/immae.nix
101 ./ftp/release.nix
102 ./ftp/temp.nix
101 ./tools/db 103 ./tools/db
102 ./tools/tools 104 ./tools/tools
103 ./tools/dav 105 ./tools/dav
@@ -201,6 +203,8 @@ in
201 services.myWebsites.Emilia.production.enable = cfg.production.enable; 203 services.myWebsites.Emilia.production.enable = cfg.production.enable;
202 services.myWebsites.Capitaines.production.enable = cfg.production.enable; 204 services.myWebsites.Capitaines.production.enable = cfg.production.enable;
203 services.myWebsites.Immae.production.enable = cfg.production.enable; 205 services.myWebsites.Immae.production.enable = cfg.production.enable;
206 services.myWebsites.Release.production.enable = cfg.production.enable;
207 services.myWebsites.Temp.production.enable = cfg.production.enable;
204 208
205 services.myWebsites.Chloe.integration.enable = cfg.integration.enable; 209 services.myWebsites.Chloe.integration.enable = cfg.integration.enable;
206 services.myWebsites.Ludivine.integration.enable = cfg.integration.enable; 210 services.myWebsites.Ludivine.integration.enable = cfg.integration.enable;
@@ -220,6 +224,22 @@ in
220 macros = { 224 macros = {
221 modules = [ "macro" ]; 225 modules = [ "macro" ];
222 }; 226 };
227 stats = {
228 extraConfig = ''
229 <Macro Stats %{domain}>
230 Alias /awstats /var/lib/goaccess/%{domain}
231 <Directory /var/lib/goaccess/%{domain}>
232 DirectoryIndex index.html
233 AllowOverride None
234 Require all granted
235 </Directory>
236 <Location /awstats>
237 Use LDAPConnect
238 Require ldap-group cn=%{domain},ou=stats,cn=httpd,ou=services,dc=immae,dc=eu
239 </Location>
240 </Macro>
241 '';
242 };
223 ldap = { 243 ldap = {
224 modules = [ "ldap" "authnz_ldap" ]; 244 modules = [ "ldap" "authnz_ldap" ];
225 extraConfig = '' 245 extraConfig = ''
@@ -241,20 +261,10 @@ in
241 AuthBasicProvider ldap 261 AuthBasicProvider ldap
242 </IfModule> 262 </IfModule>
243 </Macro> 263 </Macro>
244 264 '';
245 <Macro Stats %{domain}> 265 };
246 Alias /awstats /var/lib/goaccess/%{domain} 266 global = {
247 <Directory /var/lib/goaccess/%{domain}> 267 extraConfig = ''
248 DirectoryIndex index.html
249 AllowOverride None
250 Require all granted
251 </Directory>
252 <Location /awstats>
253 Use LDAPConnect
254 Require ldap-group cn=%{domain},ou=stats,cn=httpd,ou=services,dc=immae,dc=eu
255 </Location>
256 </Macro>
257
258 ErrorDocument 500 /maintenance_immae.html 268 ErrorDocument 500 /maintenance_immae.html
259 ErrorDocument 501 /maintenance_immae.html 269 ErrorDocument 501 /maintenance_immae.html
260 ErrorDocument 502 /maintenance_immae.html 270 ErrorDocument 502 /maintenance_immae.html
@@ -266,6 +276,90 @@ in
266 AliasMatch "(.*)/googleb6d69446ff4ca3e5.html" ${../../www}/googleb6d69446ff4ca3e5.html 276 AliasMatch "(.*)/googleb6d69446ff4ca3e5.html" ${../../www}/googleb6d69446ff4ca3e5.html
267 ''; 277 '';
268 }; 278 };
279 apaxy = {
280 extraConfig = ''
281 <Macro Apaxy %{folder} %{ignored}>
282 Alias /theme ${./apache/theme}
283 <Directory ${./apache/theme}>
284 Options -Indexes
285 AllowOverride None
286 Require all granted
287 </Directory>
288
289 # mod_autoindex
290 <Directory %{folder}>
291 Options Indexes
292 AllowOverride None
293 Require all granted
294
295 # Inspired from Apaxy by @adamwhitcroft
296
297 IndexOptions +Charset=UTF-8 +FancyIndexing +IgnoreCase +FoldersFirst +XHTML +HTMLTable +SuppressRules +SuppressDescription +NameWidth=* +IconsAreLinks +ShowForbidden
298
299 IndexHeadInsert "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />"
300
301 IndexIgnoreReset ON
302 IndexIgnore /theme .htaccess %{ignored}
303
304 AddIcon /theme/icons/blank.png ^^BLANKICON^^
305 AddIcon /theme/icons/folder.png ^^DIRECTORY^^
306 AddIcon /theme/icons/folder-home.png ..
307
308 AddIconByType (TXT,/theme/icons/text.png) text/*
309 AddIconByType (IMG,/theme/icons/image.png) image/*
310 AddIconByType (SND,/theme/icons/audio.png) audio/*
311 AddIconByType (VID,/theme/icons/video.png) video/*
312
313 AddIcon /theme/icons/archive.png .7z .bz2 .cab .gz .tar
314 AddIcon /theme/icons/audio.png .aac .aif .aifc .aiff .ape .au .flac .iff .m4a .mid .mp3 .mpa .ra .wav .wma .f4a .f4b .oga .ogg .xm .it .s3m .mod
315 AddIcon /theme/icons/bin.png .bin .hex
316 AddIcon /theme/icons/bmp.png .bmp
317 AddIcon /theme/icons/c.png .c
318 AddIcon /theme/icons/calc.png .xlsx .xlsm .xltx .xltm .xlam .xlr .xls .csv
319 AddIcon /theme/icons/cd.png .iso
320 AddIcon /theme/icons/cpp.png .cpp
321 AddIcon /theme/icons/css.png .css .sass .scss
322 AddIcon /theme/icons/deb.png .deb
323 AddIcon /theme/icons/doc.png .doc .docx .docm .dot .dotx .dotm .log .msg .odt .pages .rtf .tex .wpd .wps
324 AddIcon /theme/icons/draw.png .svg .svgz
325 AddIcon /theme/icons/eps.png .ai .eps
326 AddIcon /theme/icons/exe.png .exe
327 AddIcon /theme/icons/gif.png .gif
328 AddIcon /theme/icons/h.png .h
329 AddIcon /theme/icons/html.png .html .xhtml .shtml .htm .URL .url
330 AddIcon /theme/icons/ico.png .ico
331 AddIcon /theme/icons/java.png .jar
332 AddIcon /theme/icons/jpg.png .jpg .jpeg .jpe
333 AddIcon /theme/icons/js.png .js .json
334 AddIcon /theme/icons/markdown.png .md
335 AddIcon /theme/icons/package.png .pkg .dmg
336 AddIcon /theme/icons/pdf.png .pdf
337 AddIcon /theme/icons/php.png .php .phtml
338 AddIcon /theme/icons/playlist.png .m3u .m3u8 .pls .pls8
339 AddIcon /theme/icons/png.png .png
340 AddIcon /theme/icons/ps.png .ps
341 AddIcon /theme/icons/psd.png .psd
342 AddIcon /theme/icons/py.png .py
343 AddIcon /theme/icons/rar.png .rar
344 AddIcon /theme/icons/rb.png .rb
345 AddIcon /theme/icons/rpm.png .rpm
346 AddIcon /theme/icons/rss.png .rss
347 AddIcon /theme/icons/script.png .bat .cmd .sh
348 AddIcon /theme/icons/sql.png .sql
349 AddIcon /theme/icons/tiff.png .tiff .tif
350 AddIcon /theme/icons/text.png .txt .nfo
351 AddIcon /theme/icons/video.png .asf .asx .avi .flv .mkv .mov .mp4 .mpg .rm .srt .swf .vob .wmv .m4v .f4v .f4p .ogv
352 AddIcon /theme/icons/xml.png .xml
353 AddIcon /theme/icons/zip.png .zip
354 DefaultIcon /theme/icons/default.png
355
356 HeaderName /theme/header.html
357 ReadmeName /theme/footer.html
358 IndexStyleSheet /theme/style.css
359 </Directory>
360 </Macro>
361 '';
362 };
269 http2 = { 363 http2 = {
270 modules = [ "http2" ]; 364 modules = [ "http2" ];
271 extraConfig = '' 365 extraConfig = ''
diff --git a/nixops/modules/websites/ftp/release.nix b/nixops/modules/websites/ftp/release.nix
new file mode 100644
index 0000000..78ee276
--- /dev/null
+++ b/nixops/modules/websites/ftp/release.nix
@@ -0,0 +1,54 @@
1{ lib, pkgs, config, myconfig, mylibs, ... }:
2let
3 cfg = config.services.myWebsites.Release;
4 varDir = "/var/lib/ftp/release.immae.eu";
5 env = myconfig.env.websites.release;
6in {
7 options.services.myWebsites.Release = {
8 production = {
9 enable = lib.mkEnableOption "enable Release' website";
10 };
11 };
12
13 imports = [
14 ../commons/stats.nix
15 ];
16
17 config = lib.mkIf cfg.production.enable {
18 services.myWebsites.commons.stats.enable = true;
19 services.myWebsites.commons.stats.sites = [
20 {
21 name = "release.immae.eu";
22 conf = ./release_goaccess.conf;
23 }
24 ];
25
26 security.acme.certs."eldiron".extraDomains."release.immae.eu" = null;
27
28 services.myWebsites.production.vhostConfs.release = {
29 certName = "eldiron";
30 hosts = [ "release.immae.eu" ];
31 root = varDir;
32 extraConfig = [
33 ''
34 Use Stats release.immae.eu
35
36 Use Apaxy "${varDir}" "title .duplicity-ignore"
37 <Directory "${varDir}">
38 Use LDAPConnect
39 Options Indexes
40 AllowOverride All
41 Require all granted
42 </Directory>
43
44 <Directory "${varDir}/packages">
45 Use LDAPConnect
46 Options Indexes FollowSymlinks
47 AllowOverride None
48 Require all granted
49 </Directory>
50 ''
51 ];
52 };
53 };
54}
diff --git a/nixops/modules/websites/ftp/release_goaccess.conf b/nixops/modules/websites/ftp/release_goaccess.conf
new file mode 100644
index 0000000..2256a72
--- /dev/null
+++ b/nixops/modules/websites/ftp/release_goaccess.conf
@@ -0,0 +1,99 @@
1time-format %H:%M:%S
2date-format %d/%b/%Y
3
4#sur immae.eu
5#log-format %v %h %^[%d:%t %^] "%r" %s %b "%R" "%u" $^
6
7log-format VCOMBINED
8#= %v:%^ %h %^[%d:%t %^] "%r" %s %b "%R" "%u"
9
10html-prefs {"theme":"bright","layout":"vertical"}
11
12exclude-ip 188.165.209.148
13exclude-ip 178.33.252.96
14exclude-ip 2001:41d0:2:9c94::1
15exclude-ip 2001:41d0:2:9c94::
16exclude-ip 176.9.151.89
17exclude-ip 2a01:4f8:160:3445::
18exclude-ip 82.255.56.72
19
20no-query-string true
21
22keep-db-files true
23load-from-disk true
24db-path /var/lib/goaccess/release.immae.eu
25
26ignore-panel REFERRERS
27ignore-panel KEYPHRASES
28
29static-file .css
30static-file .js
31static-file .jpg
32static-file .png
33static-file .gif
34static-file .ico
35static-file .jpeg
36static-file .pdf
37static-file .csv
38static-file .mpeg
39static-file .mpg
40static-file .swf
41static-file .woff
42static-file .woff2
43static-file .xls
44static-file .xlsx
45static-file .doc
46static-file .docx
47static-file .ppt
48static-file .pptx
49static-file .txt
50static-file .zip
51static-file .ogg
52static-file .mp3
53static-file .mp4
54static-file .exe
55static-file .iso
56static-file .gz
57static-file .rar
58static-file .svg
59static-file .bmp
60static-file .tar
61static-file .tgz
62static-file .tiff
63static-file .tif
64static-file .ttf
65static-file .flv
66#static-file .less
67#static-file .ac3
68#static-file .avi
69#static-file .bz2
70#static-file .class
71#static-file .cue
72#static-file .dae
73#static-file .dat
74#static-file .dts
75#static-file .ejs
76#static-file .eot
77#static-file .eps
78#static-file .img
79#static-file .jar
80#static-file .map
81#static-file .mid
82#static-file .midi
83#static-file .ogv
84#static-file .webm
85#static-file .mkv
86#static-file .odp
87#static-file .ods
88#static-file .odt
89#static-file .otf
90#static-file .pict
91#static-file .pls
92#static-file .ps
93#static-file .qt
94#static-file .rm
95#static-file .svgz
96#static-file .wav
97#static-file .webp
98
99
diff --git a/nixops/modules/websites/ftp/temp.nix b/nixops/modules/websites/ftp/temp.nix
new file mode 100644
index 0000000..1033121
--- /dev/null
+++ b/nixops/modules/websites/ftp/temp.nix
@@ -0,0 +1,41 @@
1{ lib, pkgs, config, myconfig, mylibs, ... }:
2let
3 cfg = config.services.myWebsites.Temp;
4 varDir = "/var/lib/ftp/temp.immae.eu";
5 env = myconfig.env.websites.temp;
6in {
7 options.services.myWebsites.Temp = {
8 production = {
9 enable = lib.mkEnableOption "enable Temp' website";
10 };
11 };
12
13 config = lib.mkIf cfg.production.enable {
14 security.acme.certs."eldiron".extraDomains."temp.immae.eu" = null;
15
16 services.myWebsites.production.modules = [ "headers" ];
17 services.myWebsites.production.vhostConfs.temp = {
18 certName = "eldiron";
19 hosts = [ "temp.immae.eu" ];
20 root = varDir;
21 extraConfig = [
22 ''
23 Use Apaxy "${varDir}" "title"
24 <FilesMatch ".+">
25 Header set Content-Disposition attachment
26 </FilesMatch>
27 <Directory "${varDir}">
28 Options -Indexes
29 AllowOverride None
30 Require all granted
31 </Directory>
32
33 <DirectoryMatch "${varDir}/(.+)">
34 Options Indexes
35 </DirectoryMatch>
36 ''
37 ];
38 };
39 };
40}
41