# nginx-vhost: sample nginx virtual-host
#
# catches request to all subdomains
# pass it all to the VM using the VM private IP through the bridge

server {
	listen 80;
	server_name demo.hotspot.kiwix.org kiwix.demo.hotspot.kiwix.org sites.demo.hotspot.kiwix.org khanacademy.demo.hotspot.kiwix.org aflatoun.demo.hotspot.kiwix.org edupi.demo.hotspot.kiwix.org fr.wikifundi.demo.hotspot.kiwix.org es.wikifundi.demo.hotspot.kiwix.org en.wikifundi.demo.hotspot.kiwix.org;
	root /var/www;
	autoindex on;

	location / {
        proxy_pass http://192.168.1.3;
        proxy_set_header    Host            $host;
        proxy_set_header    X-Real-IP       $remote_addr;
        proxy_set_header    X-Forwarded-for $remote_addr;
        port_in_redirect off;
        proxy_connect_timeout 300;
        proxy_read_timeout 60s;
		proxy_send_timeout 60s;
    }
}
