Skip to content

Instantly share code, notes, and snippets.

@01speed1
Created December 10, 2020 16:37
Show Gist options
  • Save 01speed1/4b94be5aadb2f023d56ba16e714df4db to your computer and use it in GitHub Desktop.
Save 01speed1/4b94be5aadb2f023d56ba16e714df4db to your computer and use it in GitHub Desktop.
server {
listen 80;
# cambiar "felizmenteqa.sena.edu.co" por la url de produccion
server_name felizmenteqa.sena.edu.co;
return 301 https://felizmenteqa.sena.edu.co$request_uri;
}
server {
listen 443 ssl default_server;
ssl_certificate /etc/ssl/certs/felizmente/certificate.crt;
ssl_certificate_key /etc/ssl/certs/felizmente/key.key;
server_name felizmenteqa.sena.edu.co;
location / {
# cambiar 5000 por el puerto en el archivo .env
proxy_pass http://localhost:5000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment