Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is file permissions issue in WebUi #565

Open
buddudevelopers opened this issue Nov 20, 2024 · 1 comment
Open

There is file permissions issue in WebUi #565

buddudevelopers opened this issue Nov 20, 2024 · 1 comment

Comments

@buddudevelopers
Copy link

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;"]
@AchoArnold
Copy link
Member

Can you submit a PR @buddudevelopers ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants