Skip to content

Instantly share code, notes, and snippets.

@ohmrefresh
Created December 29, 2020 08:39
Show Gist options
  • Save ohmrefresh/1a7e5248e7aa24b931d9641e57ae0ec9 to your computer and use it in GitHub Desktop.
Save ohmrefresh/1a7e5248e7aa24b931d9641e57ae0ec9 to your computer and use it in GitHub Desktop.
Nginx Proxy to Cloudfront
server {
listen 8443 ssl;
server_name localhost;
ssl_certificate tls.crt;
ssl_certificate_key tls.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
root /usr/share/nginx/html/app;
index index.html;
location /app/resource {
resolver 1.1.1.1 valid=30s;
proxy_ssl_protocols TLSv1.2;
proxy_ssl_server_name on;
proxy_pass https://d111111abcdef8.cloudfront.net/images/image.jpg;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment