infra/docker/beta/nginx.conf

29 lines
613 B
Nginx Configuration File
Raw Normal View History

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