summaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
Diffstat (limited to 'files')
-rw-r--r--files/conf.d/cgit.conf25
-rw-r--r--files/conf.d/cgit.conf.debian26
-rw-r--r--files/conf.d/nategb.conf15
-rw-r--r--files/etc/cgitrc18
-rw-r--r--files/etc/cgitrc.debian17
-rw-r--r--files/etc/nginx.conf31
-rw-r--r--files/nategb-root/index.html57
-rw-r--r--files/nategb-root/style.css14
8 files changed, 203 insertions, 0 deletions
diff --git a/files/conf.d/cgit.conf b/files/conf.d/cgit.conf
new file mode 100644
index 0000000..d4ae100
--- /dev/null
+++ b/files/conf.d/cgit.conf
@@ -0,0 +1,25 @@
+server {
+ listen [::]:80;
+ listen 80;
+
+ server_name git.nategb.xyz git.natebuttke.com;
+
+ # Path to the static web resources of cgit
+ root /usr/share/webapps/cgit;
+
+ try_files $uri @cgit;
+
+ location @cgit {
+ include fastcgi_params;
+
+ # Path to the CGI script that comes with cgit
+ fastcgi_param SCRIPT_FILENAME /usr/share/webapps/cgit/cgit.cgi;
+ fastcgi_param PATH_INFO $uri;
+ fastcgi_param QUERY_STRING $args;
+ fastcgi_param HTTP_HOST $server_name;
+
+ # Path to the socket file that is created/used by fcgiwrap
+ fastcgi_pass unix:/run/fcgiwrap.sock;
+ }
+
+}
diff --git a/files/conf.d/cgit.conf.debian b/files/conf.d/cgit.conf.debian
new file mode 100644
index 0000000..c2e4259
--- /dev/null
+++ b/files/conf.d/cgit.conf.debian
@@ -0,0 +1,26 @@
+server {
+ listen [::]:80;
+ listen 80;
+
+ server_name git.nategb.xyz git.natebuttke.com;
+
+ # Path to the static web resources of cgit
+ root /usr/share/cgit;
+
+ try_files $uri @cgit;
+
+ location @cgit {
+ include fastcgi_params;
+
+ # Path to the CGI script that comes with cgit
+ fastcgi_param SCRIPT_FILENAME /usr/lib/cgit/cgit.cgi;
+
+ fastcgi_param PATH_INFO $uri;
+ fastcgi_param QUERY_STRING $args;
+ fastcgi_param HTTP_HOST $server_name;
+
+ # Path to the socket file that is created/used by fcgiwrap
+ fastcgi_pass unix:/run/fcgiwrap.socket;
+ }
+
+}
diff --git a/files/conf.d/nategb.conf b/files/conf.d/nategb.conf
new file mode 100644
index 0000000..313befc
--- /dev/null
+++ b/files/conf.d/nategb.conf
@@ -0,0 +1,15 @@
+server {
+ listen 80 ;
+ listen [::]:80 ;
+ server_name nategb.xyz natebuttke.com ;
+ root /var/www/nategb ;
+ index index.html index.htm index.nginx-debian.html ;
+
+ add_header Onion-Location http://nategbee2zejhurhw3fbhbc5pzgu2hzerydy7ajs2tclnbxhwoc6icqd.onion$request_uri ;
+ expires 1y;
+ add_header Cache-Control "public, no-transform";
+
+ location / {
+ try_files $uri.html $uri $uri/ =404 ;
+ }
+}
diff --git a/files/etc/cgitrc b/files/etc/cgitrc
new file mode 100644
index 0000000..809851b
--- /dev/null
+++ b/files/etc/cgitrc
@@ -0,0 +1,18 @@
+#
+# cgit config
+# see cgitrc(5) for details
+
+#paths within /usr/share/webapps/cgit
+css=/cgit.css
+logo=
+ #/cgit.png
+
+#Folder with all git repositories
+scan-path=/srv/git/
+
+# root for all cgit links
+virtual-root=/
+
+#customization
+root-title=git.nategb.xyz
+root-desc=software projects of Nate Buttke
diff --git a/files/etc/cgitrc.debian b/files/etc/cgitrc.debian
new file mode 100644
index 0000000..1d12da9
--- /dev/null
+++ b/files/etc/cgitrc.debian
@@ -0,0 +1,17 @@
+# cgit config
+# see cgitrc(5) for details
+
+#paths within /usr/share/cgit
+css=/cgit.css
+logo=
+ #/cgit.png
+
+#Folder with all git repositories
+scan-path=/srv/git/
+
+# root for all cgit links
+virtual-root=/
+
+#customization
+root-title=git.nategb.xyz
+root-desc=software projects of Nate Buttke
diff --git a/files/etc/nginx.conf b/files/etc/nginx.conf
new file mode 100644
index 0000000..67739d4
--- /dev/null
+++ b/files/etc/nginx.conf
@@ -0,0 +1,31 @@
+user http;
+worker_processes auto;
+worker_cpu_affinity auto;
+
+events {
+ multi_accept on;
+ worker_connections 1024;
+}
+
+http {
+ charset utf-8;
+ sendfile on;
+ tcp_nopush on;
+ tcp_nodelay on;
+ server_tokens off;
+ log_not_found off;
+ types_hash_max_size 4096;
+ client_max_body_size 16M;
+
+ # MIME
+ include mime.types;
+ default_type application/octet-stream;
+
+ # logging
+ access_log /var/log/nginx/access.log;
+ error_log /var/log/nginx/error.log warn;
+
+ # load configs
+ include /etc/nginx/conf.d/*.conf;
+ include /etc/nginx/sites-enabled/*;
+}
diff --git a/files/nategb-root/index.html b/files/nategb-root/index.html
new file mode 100644
index 0000000..9c72239
--- /dev/null
+++ b/files/nategb-root/index.html
@@ -0,0 +1,57 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ <title>Nate Buttke</title>
+ <meta name="author" content="Nate Buttke">
+ <meta name="viewport" content="width=device-width">
+ <link rel="stylesheet" href="style.css">
+ </head>
+
+ <body>
+ <!-- heavily inspired by john ankarstrom http://john.ankarstrom.se -->
+ <img class="me" alt="me at the beach :)" src="me.png">
+ <div style="max-width: 27em;">
+ <h1>Nate Buttke</h1>
+ <p style="line-height: 2.2;"><img style="width: 1.5em;" src="pc.gif" align="left" alt="cute CRT and keyboard">&nbsp;&nbsp;<strong class="welcome" style="color:tomato;">Welcome to my new website!</strong></p>
+ <p>
+ I'm Nate, a Computer Science student in Northern California. My current
+ interests include UNIX system administration, C programming, and cycling.
+ </p>
+ </div>
+
+ <hr>
+ <table class="blocks">
+ <tr valign="top">
+ <td>
+ <h2>Self</h2>
+ <ul class="list">
+ <li> to be added </li>
+ </ul>
+ </td>
+ <td>
+ <h2>Projects</h2>
+ <ul class="list">
+ <li><a href="http://git.nategb.xyz/">git server frontend</a> </li>
+ </ul>
+ </td>
+ <td>
+ <h2>Articles</h2>
+ <ul class="list">
+ <li> to be added </li>
+ </ul>
+ </ul>
+ </td>
+ </tr>
+ </table>
+
+ <hr>
+
+ <footer>
+ <p>
+ content is <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC-BY-SA.</a> homepage inspired by <a href="http://john.ankarstrom.se">John.</a>
+ </p>
+ </footer>
+
+ </body>
+</html>
diff --git a/files/nategb-root/style.css b/files/nategb-root/style.css
new file mode 100644
index 0000000..7e05f17
--- /dev/null
+++ b/files/nategb-root/style.css
@@ -0,0 +1,14 @@
+body{font-size: 1.1em; max-width:100%; padding: 1em; margin: 0 auto; width: 37em;}
+.me{width: 9em; float: right; margin: 2em 0 1em 1em;}
+
+table.blocks { margin: 0 -8px; }
+ table.blocks td { padding: 0 8px; }
+ ul.list, ul.list ul { margin-left: 1.375em /* 22px */; padding-left: 0; }
+
+footer{font-size: 0.7em;}
+
+@media only screen and (max-width: 640px){
+ body{font-size: 1em;}
+ .me{width:6.5em;}
+ /*.welcome{font-size: 0.9em}*/
+}