Skip to content

Instantly share code, notes, and snippets.

View edhowler's full-sized avatar

Luiz Edmundo Mizutani edhowler

  • Oncodata
  • São José dos Campos
  • 16:36 (UTC -03:00)
View GitHub Profile
@edhowler
edhowler / https-redirect.config
Last active April 30, 2024 19:39
Elastic Beanstalk configuration to redirect HTTP to HTTPS (place this inside .ebextensions folder and deploy)
files:
/etc/nginx/conf.d/elasticbeanstalk/00_application2.conf:
owner: root
group: root
mode: "000644"
content: |
location / {
set $redirect 0;
if ($http_x_forwarded_proto != "https") {
set $redirect 1;