MVP nginx configuration for single container support

This commit is contained in:
shockrah 2023-09-10 15:36:47 -07:00
parent 50c6bfeac0
commit 830352a851

28
docker/beta/nginx.conf Normal file
View File

@ -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;
}
}
}