From 999a8f4ca60e1e9f3ae8548a5017553af4cb9b99 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Wed, 5 Jul 2023 18:09:06 -0700 Subject: [PATCH] Fill out the example file. --- .../ReverseProxy/config/conf.d/example.conf | 31 +++++++++++++++++++ Config/ReverseProxy/config/conf.d/test.conf | 2 -- 2 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 Config/ReverseProxy/config/conf.d/example.conf delete mode 100644 Config/ReverseProxy/config/conf.d/test.conf diff --git a/Config/ReverseProxy/config/conf.d/example.conf b/Config/ReverseProxy/config/conf.d/example.conf new file mode 100644 index 0000000..a93c1cc --- /dev/null +++ b/Config/ReverseProxy/config/conf.d/example.conf @@ -0,0 +1,31 @@ +# 2022-10-05 Hyperling +# A dummy test file since true scripts are being kept private. +# This should help anyone understand how the project is being used. + +# Force HTTPS +server { + + listen 80; + server_name example.hyperling.com; + + # Redirect to the proper protocol. + return 301 https://$host$request_uri; + +} + +# Serve website +server { + + listen 443 ssl http2; + server_name example.hyperling.com; + + ssl_certificate /usr/local/etc/letsencrypt/live/example.hyperling.com/fullchain.pem; + ssl_certificate_key /usr/local/etc/letsencrypt/live/example.hyperling.com/privkey.pem; + + # Send traffic to upstream server + location / { + proxy_set_header X-Forwarded-Proto https; + proxy_pass http://local_web_server:8317; + } + +} \ No newline at end of file diff --git a/Config/ReverseProxy/config/conf.d/test.conf b/Config/ReverseProxy/config/conf.d/test.conf deleted file mode 100644 index 4b8c2a9..0000000 --- a/Config/ReverseProxy/config/conf.d/test.conf +++ /dev/null @@ -1,2 +0,0 @@ -# 2022-10-05 Hyperling -# Just a dummy test file.