Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (25 sloc) 760 Bytes
server {
listen 80;
server_name mapcraft.local;
access_log /var/log/nginx/mapcraft.access.log;
rewrite ^/pie/[0-9]+/?$ /client.html last;
rewrite ^/(list|map|create)$ /app/index.php?page=$1 last;
rewrite ^/oauth_callback.php$ /app/oauth_callback.php last;
# Static files will be served by nginx
location / {
root /path/to/mapcraft/static;
index index.html;
}
# Proxy php scripts to apache on 8000 port
location /app/ {
proxy_pass http://127.0.0.1:8000;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
# Proxy hub requests to mapcraft hub
location /hub {
proxy_pass http://127.0.0.1:8080;
proxy_buffering off;
proxy_read_timeout 3600;
}
}