summaryrefslogtreecommitdiff
path: root/aux
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-04-17 03:38:41 -0400
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-04-17 03:38:41 -0400
commitfc0e50be224d45ec1bf7d40a81e408c45bdec1be (patch)
treeade7eea9056a3c50fc2f6d8981a96f8f8d912863 /aux
parent996d9bf766e5586e46b1b6383783c3b6f26ebbb1 (diff)
Add files related to deployment
Diffstat (limited to 'aux')
-rw-r--r--aux/nginx.conf36
-rwxr-xr-xaux/post-receive8
2 files changed, 44 insertions, 0 deletions
diff --git a/aux/nginx.conf b/aux/nginx.conf
new file mode 100644
index 0000000..774c387
--- /dev/null
+++ b/aux/nginx.conf
@@ -0,0 +1,36 @@
+# -*- Mode: nginx; nginx-indent-level: 8; indent-tabs-mode: t -*-
+
+server {
+ server_name www.lukeshu.com;
+ listen 443 ssl http2;
+ listen [::]:443 ssl http2;
+
+ error_log /var/log/nginx/http.www_lukeshu_com.error.log error;
+ access_log /var/log/nginx/http.www_lukeshu_com.access.log combined;
+
+ # Main
+ location / {
+ index index.html;
+ charset utf-8;
+ location /dump/ {
+ location /dump/rfc7235 {
+ auth_basic "Restricted";
+ auth_basic_user_file /dev/null;
+ }
+ location ~ /dump/.*\.d/ {
+ autoindex on;
+ }
+ }
+ location /avatar/ {
+ try_files $uri.png =404;
+ }
+ }
+
+ # Legacy
+ location /git {
+ location /git { rewrite ^/git(/.*)?$ https://git.lukeshu.com$1$is_args$args? permanent; }
+ location /git/mirror/dotfiles { rewrite ^/git/mirror/(.*)$ https://git.lukeshu.com/$1$is_args$args? permanent; }
+ location /git/mirror/thingutils { rewrite ^/git/mirror/(.*)$ https://git.lukeshu.com/$1$is_args$args? permanent; }
+ }
+ location /donate.html { return 301 /sponsor/; }
+}
diff --git a/aux/post-receive b/aux/post-receive
new file mode 100755
index 0000000..52434c2
--- /dev/null
+++ b/aux/post-receive
@@ -0,0 +1,8 @@
+#!/bin/bash
+cd ~lukeshu/www
+
+unset GIT_DIR
+git pull
+
+export LANG=en_US.UTF-8
+make