Skip to content

Latest commit

 

History

History
40 lines (34 loc) · 1.17 KB

README.md

File metadata and controls

40 lines (34 loc) · 1.17 KB

nginx Docker Image for Intershop Progressive Web App

Please refer to the documentation for configuration options.

Example

  1. Edit the file nginx/multi-channel.yaml:

    .+\.net:
      channel: inSPIRED-inTRONICS-Site
      lang: en_US
      theme: 'b2c'
    .+\.de:
      channel: inSPIRED-inTRONICS-Site
      lang: de_DE
      theme: 'b2c'
    .+\.com:
      channel: inSPIRED-inTRONICS_Business-Site
      features: quoting,businessCustomerRegistration
    .+\.fr:
      channel: inSPIRED-inTRONICS-Site
      lang: fr_FR
      application: smb-responsive
      features: quoting
  2. Run the following from the project root:

    docker build -t my_awesome_nginx nginx
    docker run -d --name "my-awesome-nginx" \
            --restart always \
            -p 4199:80 \
            -e UPSTREAM_PWA=http://192.168.0.10:4200 \
            -e CACHE=off \
            my_awesome_nginx
    
  3. Access the PWA with http://<your-fully-qualified-machine-name>:4199

If your DNS is not set up correctly, you have to use something like dnsmasq (Linux) or Acrylic DNS Proxy (Windows), or just ask your local network administrator.