All Questions

Tagged with
Filter by
Sorted by
Tagged with
2 votes
1 answer
8k views

Angular CORS with Nginx

Several questions for the same topic on the net but nothing worked. I have a serverXYZ running an Angular app, a backend tomcat webapp for authentication, a nginx server. Angular app on port 4200, ...
glass's user avatar
  • 25
2 votes
2 answers
9k views

CORS blocked by No "Access-Control-Allow-Origin" on dockerized Angular frontend app and Spring Boot dockerized backend

I have built an Angular app and created a docker image, which makes it run on an Nginx server (once it is run). For the backend, I have a dockerized implementation as well. While trying to access the ...
Leo's user avatar
  • 21
1 vote
2 answers
654 views

Is reverse proxy recommended in production environment?

We have an Angular app and a Back-end web API on .NET core. Both sites should be served over HTTPS. I currently have one Linux server. Currently I'm planning to host my Angular app on a domain (for ...
mbdow's user avatar
  • 9
1 vote
1 answer
8k views

How to config Nginx to serve Angular app when the angular urls are like this http://serverpath/a/b?

I'm trying to serve an Angular(V7) app with Nginx. according to https://angular.io/guide/deployment#fallback-configuration-examples I change default Nginx config try_files $uri $uri/ =404; to ...
Naeiim Shiri's user avatar
1 vote
0 answers
320 views

Angular application CORS issues using Nginx

My Angular application is unable to make requests to my backend. This is the Nginx configuration server { listen 0.0.0.0:443 ssl; listen [::]:443 ssl; server_name my.site.io; ssl_certificate ...
Antonio Santoro's user avatar
1 vote
1 answer
487 views

WSS Connectivity issue on production

I am using Angular8 as frontend and Nodejs as backend I have Configured WSS on production ,but connection with client not working properly, In one page connection is working but in another page ...
Satish Umagol's user avatar
1 vote
1 answer
3k views

nginx reverse proxy all path to an express angular nodejs app

I'm developing an app using express nodjs as backend for an API and developing the frontend with angular7. I am ready to deploy (copy) all *js, *html from the angular app build to a public/path in the ...
juan carlos peña cabrera's user avatar
1 vote
0 answers
99 views

Nginx with SSL maintaining appends domain name before request URL

There is an Angular application in the dockerized Nginx. The Nginx configured for https mode with a trusted SSL certificate. The Nginx config looks like: worker_processes 1; error_log /var/log/...
xxxception's user avatar
0 votes
1 answer
2k views

NGINX serving multiple angular applications - static files missing error

Have more than 1 angular application served by single nginx reverse proxy. Here is my config I tried. worker_processes 1; error_log <%= ENV["APP_ROOT"] %>/nginx/logs/error.log; events ...
Pat's user avatar
  • 101
0 votes
1 answer
608 views

Nginx und Tomcat For Spring and Angular App

I have Spring boot and Angular app in Tomcat Container deployed on Server. It works totally fine on localhost. Now I am trying to map my domain with the application. When I call my domain then API ...
lesnar's user avatar
  • 101
0 votes
0 answers
15 views

Configure Nginx to serve Wordpress site and Angular app with same domain

I'm newbie with Nginx and server configurations. I'm trying to deploy a Wordpress web and Angular 2 webapp (each project in a different folder/path) using the same domain and configured by Nginx. For ...
Rubén's user avatar
  • 1
0 votes
0 answers
137 views

(111: Connection refused) while connecting to upstream nginx with docker

I am trying to dockerizing a angular universal app using nginx, and it's giving me really hard time. I have looked everywhere and haven't found a solution. Dockerfile FROM node:14-alpine AS builder ...
M Safdar Ali Khan's user avatar
0 votes
1 answer
1k views

Nginx Reverse Proxy do not load JS and CSS from other server

I have two version of a WebApp, running on two different servers (prod and dev). Prod version is available on exemple.com, and dev version on exemple.com/dev. However, when I set the proxy to load dev ...
Guix's user avatar
  • 103
0 votes
1 answer
565 views

How to create auto redirect to 301 https + proxy_pass in NGINX for one location /

This is my nginx config: server { listen 80; server_name example.com; server_tokens off; location /.well-known/acme-challenge/ { root /var/www/certbot; } location / { proxy_pass ...
Aliaksandr Vysotskiy's user avatar
0 votes
1 answer
552 views

1 rewrite or internal redirection cycle while internally redirecting to "/en/index.html"

I want to host the Angular i18n website using the Nginx proxy. As per the official Nginx configuration suggestion https://angular.io/guide/i18n-common-deploy#nginx-example, my app.conf file in the /...
Anuj TBE's user avatar
  • 111
0 votes
0 answers
588 views

Downloading large excel file in angular using xlsx library(net::ERR_INCOMPLETE_CHUNKED_ENCODING 200)

I am doing an excel file download using angular + springboot and the api returns application/json file. The transfer-encoding:chunked is always enabled and i see responses return http 1.1 . I posted ...
user2868864's user avatar
0 votes
0 answers
1k views

SSL Error: How to use Nginx with Node.js App using Angular and websocket

I am running into an SSL error when setting up Nginx as a reverse proxy for a Node.js app. This app uses Angular to serve dynamic content and for WebSocket, we use ws. WS working properly but when ...
user23316's user avatar
0 votes
0 answers
2k views

Nginx - Angular not passing Authorization header

This is the schematic of my microservices setup: To put in words: request comes from browser nginx reverses proxy the request to the angular container angular container makes request to the backend ...
user3353167's user avatar
0 votes
0 answers
1k views

Nginx server configuration hosting an Angular app and proxying requests of the API calls

How one is able to proxy the requests (or the API calls) of an Angular app hosted on Nginx towards backend running on a docker container having another port value (the Angular app is also dokcerized)? ...
Leo's user avatar
  • 21
0 votes
1 answer
3k views

Nginx not able to redirect js , css, jpeg files

Please find by nginx.conf file as below : server { listen 81; server_name www.mysite.com; root /home/ubuntu/mysite/dist; index index.php index.html index.htm; charset utf-8; ...
Lavesh Bhandari's user avatar
0 votes
1 answer
401 views

Gitlab CI won't serve Angular app to staging environment

I am trying to set up a pipeline that does the following: Commit new Angular code Build live review app for testing Manual push to production I have been able to successfully build the app within the ...
punygod's user avatar