aboutsummaryrefslogtreecommitdiff
path: root/nginx.sh
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2023-01-03 23:49:41 -0500
committerMitchell Riedstra <mitch@riedstra.dev>2023-01-03 23:49:41 -0500
commitc71b37eb23d4c8af7ab983de34c6da5be9363f3a (patch)
treefa699de5d31008b17529d799df00a9a3290c52bf /nginx.sh
parent61612c8e1861ac704bbe592a623a41f12ebc9c11 (diff)
downloadpaste-c71b37eb23d4c8af7ab983de34c6da5be9363f3a.tar.gz
paste-c71b37eb23d4c8af7ab983de34c6da5be9363f3a.tar.xz
Tweak index handler to always load the frontend.HEADv0.0.1masterdev
Also add Nginx testing script, logging options and some docs.
Diffstat (limited to 'nginx.sh')
-rwxr-xr-xnginx.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/nginx.sh b/nginx.sh
new file mode 100755
index 0000000..31ff236
--- /dev/null
+++ b/nginx.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+set -ex
+# Testing script to run behind a local https proxy
+# `mkcert` can be useful to generate valid certs
+# for testing
+podman run --rm --network=host \
+ -v "$(pwd)/nginx.conf":/etc/nginx/nginx.conf \
+ -v "$(pwd)/key.pem":/key.pem \
+ -v "$(pwd)/crt.pem":/crt.pem \
+ docker.io/nginx:alpine