Proxy setup
It is recommended to run a web proxy behind the frontend and backend for optimized installation. These urls should be routed to the backend:Example Config File
This is an example configuration for NGINX. It is also located in the Blockscout repo atdocker-compose/proxy/default.conf.template
In this example the frontend and backend are forwarded to port 80, meaning the new frontend will be available on localhost without needing to specify a port number.
NOTE: For production usage you should add at a minimum the correct
server_name (ie eth.blockscout.com) and TLS info (ssl_certificate, ssl_certificate_key, other required variables?) at a minimum.NOTE: Here the stats service also uses separate port on nginx, but for production usage we recommend a separate hostname for stats. CORS policy for stats should allow the frontend domain.