Skip to content

There is file permissions issue in WebUi  #565

@buddudevelopers

Description

@buddudevelopers

File permissions issue in WebUi on self hosted setup makes nginx display default page instead of the nuxt app. You need to edit docker file in web directory to add RUN chmod -R 755 /usr/share/nginx/html

# build stage
FROM node:lts-alpine as build

WORKDIR /app

COPY package*.json ./

# Install pnpm
RUN npm install -g pnpm

# install python
RUN apk add --no-cache python3

RUN pnpm install
COPY . .
RUN pnpm run generate

# production stage
FROM nginx:stable-alpine as production
COPY --from=build /app/dist /usr/share/nginx/html

# Copy the nginx configuration file
COPY ./nginx.conf /etc/nginx/conf.d/default.conf

#fix permissions to prevent showing nginx default page
RUN chmod -R  755 /usr/share/nginx/html

EXPOSE 3000

CMD ["nginx", "-g", "daemon off;"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions