Category : nginx

I’m deploing a spring boot backend with nginx and testing the endpoints with angular. Here is the nginx configuration #servcie.domain.it server{ listen 443 ssl; server_name servcie.domain.it; ssl_certificate /etc/letsencrypt/live/servcie.domain.itfullchain.pem; ssl_certificate_key /etc/letsencrypt/live/servcie.domain.it/privkey.pem; location /api { #backend rewrite ^/api/(.*) /$1 break; proxy_pass http://localhost:8085; } } server{ listen 80; server_name servcie.domain.it; return 301 https://servcie.domain.it$request_uri; } But Angular gives me ..

Read more

Stuck with the NGINX server configuration. Tried many solutions not able to resolve them. Newbie to Server-side deployment. Placed static Angular –prod files in /var/www/example.com and Below are the server configuration for that server { listen [::]:443 ssl ipv6only=on; # managed by Certbot listen 443 ssl; # managed by Certbot ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem; # managed by ..

Read more

I have the ingress setup for Kubernetes as the following apiVersion: networking.k8s.io/v1beta1 kind: Ingress metadata: name: dev-ingress #namespace: dev annotations: nginx.ingress.kubernetes.io/rewrite-target: /$2 nginx.ingress.kubernetes.io/use-regex: "true" ingress.gcp.kubernetes.io/pre-shared-cert: "self-signed" kubernetes.io/ingress.class: "nginx" kubernetes.io/ingress.allow-http: "true" spec: rules: – host: my.host.com http: paths: – backend: serviceName: webui-svc servicePort: 80 path: /webui(/|$)(.*) I am running an Angular app deployment under the webui-svc. ..

Read more

I know my question might be too simple but as i’m not a Docker expert, i’m kinda stuck with it the follow is my docker configs 1- docker-compose.yml version: "3.4" services: angular: build: context: . dockerfile: docker/staging/angular.dockerfile ports: – ‘4200:4200′ nginx: build: context: . dockerfile: docker/staging/nginx.dockerfile ports: – ’80:80’ depends_on: – angular 2- angular.dockerfile FROM ..

Read more

I am new to Angular and nginx. I have an Angular application running at http:/localhost:4200/abc which interacts with a rails application running in my local port 3001 – http://localhost:3001. I am trying to use nginx for redirecting the requests. I want to access the angular in a custom URL local-admin.com. So I created a nginx ..

Read more