parm530
5/8/2020 - 6:49 PM

NGINX Setup

NGINX in EY Servers

  • located in /etc/nginx
  • contains nginx.conf: default settings for all apps
  • contains servers/ which contains all directories for the apps in the environment and app_name.conf files
    • may also contain app_name.ssl.conf for apps that have ssl installed
      • If the site has ssl forced to true config.force_ssl = true, to enable http2:
        • In etc/nginx/servers/app_name.ssl.conf, add: listen 8092 ssl http2 proxy_protocol; to the server block
    • these app_name.conf files are generic for the apps
    • more custom settings are located further in app_name/custom.conf files
    • the app_name.conf file includes the app_name/custom.conf file