To enable cezerin apps from browser, we need to setup web server.
We need to proxy all requests from web to our cezerin apps.
All requests from domain.com proxy to localhost:3000 (running cezerin frontend app)
All requests from domain.com/api, domain.com/ajax, domain.com/images proxy to localhost:3001 (running cezerin backend app)
We have cezerin nginx config, so you can use this config for web deploy.
P.S. Change /var/www/cezerin2/ in nginx config to your path if you download cezerin to another folder.
We need to add a new website to Nginx.
-
Change Nginx config file
cd /etc/nginx/sites-availableopen
defaultfile and paste this config -
Reload Nginx configuration
nginx -t && service nginx reload