# FE apps.f0xx.org — replace hub/crashes upstream blocks (use BE port 80, preserve URI).
# File: tmp/FE_gentoo/etc/nginx/nginx.conf  (inside server { listen 443; server_name apps.f0xx.org; })
#
# WRONG (causes browser to download index.php as application/octet-stream):
#   proxy_pass https://artc0.intra.raptor.org/app/androidcast_project/;
# BE :443 serves static files; hub must hit BE :80 (PHP-FPM) like location / already does.

		location /app/androidcast_project/ {
		 	proxy_pass http://artc0.intra.raptor.org:80;
		 	proxy_http_version 1.1;
		 	proxy_set_header Host              $host;
		 	proxy_set_header X-Real-IP         $remote_addr;
		 	proxy_set_header X-Forwarded-For   $proxy_add_x_forwarded_for;
		 	proxy_set_header X-Forwarded-Proto $scheme;
		}

		location /app/androidcast_project/crashes/ {
		 	proxy_pass http://artc0.intra.raptor.org:80;
		 	proxy_http_version 1.1;
		 	proxy_set_header Host              $host;
		 	proxy_set_header X-Real-IP         $remote_addr;
		 	proxy_set_header X-Forwarded-For   $proxy_add_x_forwarded_for;
		 	proxy_set_header X-Forwarded-Proto $scheme;
		}

# apps.conf build block must stay:
#   proxy_pass http://artc0.intra.raptor.org:80;   (no trailing slash)
