summaryrefslogtreecommitdiff
path: root/roles/webservers/files/levi/https.rainrain.xyz.servconf
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2024-10-14 22:16:04 -0400
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2024-10-14 22:16:04 -0400
commit27213e690c9e64bdc6084bb4daa3e1589b01f4d0 (patch)
treec1c3a58151247e924c72782faf0fc0860ed2b272 /roles/webservers/files/levi/https.rainrain.xyz.servconf
parente083b30ea26e59a954085bbafbb311b10b241ad3 (diff)
downloadoldinfra-27213e690c9e64bdc6084bb4daa3e1589b01f4d0.tar.gz
oldinfra-27213e690c9e64bdc6084bb4daa3e1589b01f4d0.zip
woah
Diffstat (limited to 'roles/webservers/files/levi/https.rainrain.xyz.servconf')
-rw-r--r--roles/webservers/files/levi/https.rainrain.xyz.servconf19
1 files changed, 19 insertions, 0 deletions
diff --git a/roles/webservers/files/levi/https.rainrain.xyz.servconf b/roles/webservers/files/levi/https.rainrain.xyz.servconf
new file mode 100644
index 0000000..5485af1
--- /dev/null
+++ b/roles/webservers/files/levi/https.rainrain.xyz.servconf
@@ -0,0 +1,19 @@
+stream {
+ map $ssl_preread_server_name $name {
+ *.rainrain.xyz rainrainxyz;
+ default proxy;
+ }
+
+ upstream rainrainxyz {
+ server tailscale.rain.internal.simponic.xyz:443;
+ }
+ upstream proxy {
+ server 127.0.0.1:4443;
+ }
+
+ server {
+ listen 443;
+ proxy_pass $name;
+ ssl_preread on;
+ }
+}