Skip to content

Instantly share code, notes, and snippets.

@kylejohnson
Last active May 1, 2020 19:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kylejohnson/9db0e6fb7c8d6abc2b5cf03805a7d845 to your computer and use it in GitHub Desktop.
Save kylejohnson/9db0e6fb7c8d6abc2b5cf03805a7d845 to your computer and use it in GitHub Desktop.
server {
listen 80 default_server;
server_name _;
location = /health-check {
return 200;
access_log off;
}
location / {
return 301 https://$host$request_uri;
}
}
server {
listen 443 ssl;
server_name _;
ssl_certificate /etc/nginx/ssl/$ssl_server_name/cert.pem;
ssl_certificate_key /etc/nginx/ssl/$ssl_server_name/cert.key;
location / {
proxy_pass http://s3.../;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment