From b360c6f62c3a99bbe57b7d0c7f5fa55f9336a563 Mon Sep 17 00:00:00 2001 From: Nate Buttke Date: Mon, 27 Dec 2021 19:11:27 -0800 Subject: restart repo --- files/conf.d/cgit.conf | 25 +++++++++++++++++++ files/conf.d/cgit.conf.debian | 26 ++++++++++++++++++++ files/conf.d/nategb.conf | 15 ++++++++++++ files/etc/cgitrc | 18 ++++++++++++++ files/etc/cgitrc.debian | 17 +++++++++++++ files/etc/nginx.conf | 31 +++++++++++++++++++++++ files/nategb-root/index.html | 57 +++++++++++++++++++++++++++++++++++++++++++ files/nategb-root/style.css | 14 +++++++++++ 8 files changed, 203 insertions(+) create mode 100644 files/conf.d/cgit.conf create mode 100644 files/conf.d/cgit.conf.debian create mode 100644 files/conf.d/nategb.conf create mode 100644 files/etc/cgitrc create mode 100644 files/etc/cgitrc.debian create mode 100644 files/etc/nginx.conf create mode 100644 files/nategb-root/index.html create mode 100644 files/nategb-root/style.css (limited to 'files') 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 @@ + + + + + Nate Buttke + + + + + + + + me at the beach :) +
+

Nate Buttke

+

cute CRT and keyboard  Welcome to my new website!

+

+ I'm Nate, a Computer Science student in Northern California. My current + interests include UNIX system administration, C programming, and cycling. +

+
+ +
+ + + + + + +
+

Self

+
    +
  • to be added
  • +
+
+

Projects

+ +
+

Articles

+
    +
  • to be added
  • +
+ +
+ +
+ + + + + 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}*/ +} -- cgit v1.2.3