Skip to content

Instantly share code, notes, and snippets.

@jmlrt
Created August 17, 2018 14:18
Show Gist options
  • Save jmlrt/77876c64ddabac24c37880efe8565460 to your computer and use it in GitHub Desktop.
Save jmlrt/77876c64ddabac24c37880efe8565460 to your computer and use it in GitHub Desktop.
Default Nginx config for Gateway with HTTPS
server {
listen 80;
server_name localhost;
location / {
proxy_pass http://gateway:8080;
}
}
server {
listen 443 ssl;
server_name localhost;
ssl_certificate /etc/ssl/certs/nginx-selfsigned.crt;
ssl_certificate_key /etc/ssl/private/nginx-selfsigned.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
location / {
proxy_pass http://gateway:8080;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment