Created
December 29, 2020 08:39
-
-
Save ohmrefresh/1a7e5248e7aa24b931d9641e57ae0ec9 to your computer and use it in GitHub Desktop.
Nginx Proxy to Cloudfront
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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