2023-09-10 22:36:47 +00:00
|
|
|
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;
|
|
|
|
}
|
2023-09-10 23:23:54 +00:00
|
|
|
location /health {
|
|
|
|
access_log off;
|
|
|
|
add_header 'Content-Type' 'text/plain';
|
|
|
|
return 200 "healthy";
|
|
|
|
}
|
2023-09-10 22:36:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
listen [::]:80;
|
|
|
|
server_name resume.shockrah.xyz;
|
|
|
|
location / {
|
|
|
|
proxy_pass http://resume.shockrah.xyz.s3-website-us-west-1.amazonaws.com;
|
|
|
|
}
|
2023-09-10 23:23:54 +00:00
|
|
|
location /health {
|
|
|
|
access_log off;
|
|
|
|
add_header 'Content-Type' 'text/plain';
|
|
|
|
return 200 "healthy";
|
|
|
|
}
|
2023-09-10 22:36:47 +00:00
|
|
|
}
|
|
|
|
}
|