Created
April 29, 2016 16:12
-
-
Save jthmiranda/6eb68cf0dd7dbe6d489a8cad8ba88a39 to your computer and use it in GitHub Desktop.
configuración de moodle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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