Category : nginx

Actually, I thought this would be an easy task. I would appreciate any help. I use nginx in a docker container: docker-compose.yml version: ‘3.0’ services: web: image: nginx volumes: – ./nginx.conf:/etc/nginx/nginx.conf – ./data:/www/data ports: – "8080:80" nginx.conf events { # configuration of connection processing } http { server { location = /auth { internal; proxy_pass ..

Read more

I have a very simple HTML called index.html file which generates a website along with some javascript and css. In the same folder, there’s a Dockerfile of my creation with the following lines : # use nginx:alpine as base image FROM nginx:alpine # copy static website index.html into nginx default html folder COPY index.html /usr/share/nginx/html ..

Read more

I’ve got an nginx proxy running in kubernetes, it just passes the url with a query string to another container. server { listen 80; server_name localhost; location /api/ { set $args "${args}"; proxy_pass http://localhost:6000/$is_args$args; } } It’s working as the nginx logs show on every request GET /api/ HTTP/1.1" 502 494 "http://192.168.56.3:33001/?path=1234" Then there’s a ..

Read more

I have the app deployed in one docker container: Frontend – VueJS (served by Nginx) Backend – Flask (gunicorn) Dockerfile: # Builder FROM node:10-alpine as builder WORKDIR /vue-ui COPY ./frontend/package*.json ./ RUN npm install COPY ./frontend . RUN npm run build #Production container FROM nginx:alpine as production-build WORKDIR /app RUN apk update && apk add ..

Read more

I have a simple website by .net core and hosted in a Linux docker container. I had an error "the SSL connection could not be established" when trying to upload files to digital ocean spaces. I configured my localhost certificate to nginx but not work Docker compose file: version: ‘3.4’ services: nginx: image: nginx:alpine hostname: ..

Read more