{ email your-email@example.com } your-domain.com { # Mobile client (default) handle { root * /srv/mobile try_files {path} /index.html file_server } # Screen client handle /screen/* { root * /srv/screen uri strip_prefix /screen try_files {path} /index.html file_server } # API proxy handle /api/* { reverse_proxy server:3000 } # WebSocket proxy handle /socket.io/* { reverse_proxy server:3000 } # Gzip compression encode gzip }