Issues information
Cannot access app by custom domain
- OS:
No - databases:
No - Programming language and version:
VUE - Link to your project on Github/Gitlab:
Your issue
Cannot access app by custom domain
Describe here your issue
On WebConsole I added the port mapping for port 80, and add the custom domain, after, on my dns server I put the cname, I can see by given domain, but by custom domain no
Dockerfile content (if any)
FROM node:12.0-stretch-slim as build-stage
WORKDIR /app
COPY package*.json ./
RUN apt update && apt upgrade -y && apt install git vim -y && npm install
COPY . .
RUN npm run build
Production Stage
FROM nginx:stable-alpine as production-stage
COPY --from=build-stage /app/dist /usr/share/nginx/html
WORKDIR /app
COPY settings/default.conf /etc/nginx/conf.d/
RUN apk update && apk upgrade && apk add --no-cache tzdata
EXPOSE 80
CMD [“nginx”, “-g”, “daemon off;”]
*************************** settings/default.conf ***************************
server {
listen 80;
listen [::]:80;
server_name localhost;
location / {
root /usr/share/nginx/html;
client_max_body_size 500m;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}