Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 1021 Bytes

deploy-on-web-nginx.md

File metadata and controls

30 lines (18 loc) · 1021 Bytes

Run Nginx

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 (just remove default config settings and replace with cezerin config settings).

cezerin nginx config

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.

  1. Change Nginx config file

    cd /etc/nginx/sites-available
    

    open default file and paste this config

  2. Reload Nginx configuration

    nginx -t && service nginx reload