Skip to content

Instantly share code, notes, and snippets.

@jthmiranda
Created April 29, 2016 16:12
Show Gist options
  • Save jthmiranda/6eb68cf0dd7dbe6d489a8cad8ba88a39 to your computer and use it in GitHub Desktop.
Save jthmiranda/6eb68cf0dd7dbe6d489a8cad8ba88a39 to your computer and use it in GitHub Desktop.
configuración de moodle
upstream moodle-app {
server ip/domainname/dockername;
}
# creando una zona de memoria de 10 megas para IP's
# taza de concurrencia a 1 solicitud por segundo
# limit_req_zone $binary_remote_addr zone=admin:10m rate=10r/s;
server {
listen 80;
server_name escuela.dominio.com;
location / {
proxy_pass http://moodle-app;
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