server {
  listen 80;
  listen [::]:80;
  server_name *.modernxsdepueblo.com modernxsdepueblo.com;
  return 301 https://$host$request_uri;
}

#server {
#  listen 443 ssl http2;
#  server_name www.defaultdrop.net;
#  ssl_certificate /etc/nginx/defaultdrop.pem;
#  ssl_certificate_key /etc/nginx/defaultdrop.pem;
#  location / {
#    return 301 https://www.$host$request_uri;
#  }
#}

server {
  listen 443 ssl http2;
  listen [::]:443 ssl http2;
  server_name *.modernxsdepueblo.com modernxsdepueblo.com;
  ssl_certificate /etc/nginx/modernxsdepueblo.cert;
  ssl_certificate_key /etc/nginx/modernxsdepueblo.key;
  location / {
     proxy_pass http://172.19.0.4:80;
#     proxy_pass http://172.19.0.3:80;
     proxy_set_header X-Forwarded-Host $host;
     proxy_set_header X-Forwarded-Server $host;
     proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
     proxy_set_header X-Forwarded-Proto $scheme;
     proxy_set_header X-Real-IP $remote_addr;
     proxy_set_header Host $host;
     add_header Alt-Svc 'h3-25=":443"; h3-24=":443"; ma=86400, h3-23=":443"';
  }

}

