All Questions
21
questions
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, ...
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 ...
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 ...
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
...
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 ...
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 ...
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 ...
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/...
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 ...
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 ...
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 ...
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
...
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 ...
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 ...
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 /...
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 ...
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 ...
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 ...
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)?
...
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;
...
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 ...