Commit b9c8abe5 authored by Antonis Kalou's avatar Antonis Kalou

Add support for HTTP forwarding with Nginx

parent 7ad11c28
events {
worker_connections 2048;
http {
upstream moodle_net_upstream {
# TODO: load from template
server {
listen 80;
server_name _;
location / {
proxy_redirect off;
proxy_pass http://moodle_net_upstream;
......@@ -97,4 +97,19 @@
enabled: yes
become: yes
- name: install nginx
apt: name=nginx state=latest
become: yes
- name: copy over nginx config
src: "../files/nginx.conf.j2"
dest: "/etc/nginx/nginx.conf"
remote_src: no
become: yes
- name: restart nginx
name: nginx
state: restarted
become: yes
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment