diff --git a/Nginx/dev.conf.d/local.conf b/Nginx/dev.conf.d/local.conf index 54e052edc..857196c33 100644 --- a/Nginx/dev.conf.d/local.conf +++ b/Nginx/dev.conf.d/local.conf @@ -38,6 +38,10 @@ server { location /arduino/ { proxy_hide_header X-Frame-Options; proxy_pass http://arduino_frontend; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + proxy_set_header Host $host; } location /kicad-symbols { diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index 4e473f5cd..004e0b39b 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -42,7 +42,7 @@ services: build: ./ArduinoFrontend/ command: > sh -c "npm install && - npm start" + npx ng serve --disableHostCheck --base-href /arduino/ --serve-path /arduino/" ports: - "4200:4200"