events {} http { include mime.types; server { root /app; listen 80; index index.html; location / { try_files ${DOLLAR}uri /index.html; } location ^~ /index.php/s/ { proxy_pass '${ENDPOINT}'; } } }