From 830352a851c45652f07d6e0395c0f8c266d02414 Mon Sep 17 00:00:00 2001 From: shockrah Date: Sun, 10 Sep 2023 15:36:47 -0700 Subject: [PATCH] MVP nginx configuration for single container support --- docker/beta/nginx.conf | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 docker/beta/nginx.conf diff --git a/docker/beta/nginx.conf b/docker/beta/nginx.conf new file mode 100644 index 0000000..bbbc2af --- /dev/null +++ b/docker/beta/nginx.conf @@ -0,0 +1,28 @@ +events { + worker_connections 768; +} + +http { + proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=my_cache:10m inactive=60m; + proxy_cache_valid 200 60m; + proxy_cache_valid 404 1m; + proxy_cache my_cache; + proxy_cache_key "$scheme$request$request_method$host$request_uri"; + server { + listen 80; + listen [::]:80; + server_name shockrah.xyz; + location / { + proxy_pass http://shockrah.xyz.s3-website-us-west-1.amazonaws.com; + } + } + + server { + listen 80; + listen [::]:80; + server_name resume.shockrah.xyz; + location / { + proxy_pass http://resume.shockrah.xyz.s3-website-us-west-1.amazonaws.com; + } + } +}