[GH-ISSUE #565] There is file permissions issue in WebUi #61

Closed
opened 2026-03-03 16:36:20 +03:00 by kerem · 2 comments
Owner

Originally created by @buddudevelopers on GitHub (Nov 20, 2024).
Original GitHub issue: https://github.com/NdoleStudio/httpsms/issues/565

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;"]
Originally created by @buddudevelopers on GitHub (Nov 20, 2024). Original GitHub issue: https://github.com/NdoleStudio/httpsms/issues/565 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;"] ```
kerem closed this issue 2026-03-03 16:36:21 +03:00
Author
Owner

@AchoArnold commented on GitHub (Nov 20, 2024):

Can you submit a PR @buddudevelopers ?

<!-- gh-comment-id:2488904392 --> @AchoArnold commented on GitHub (Nov 20, 2024): Can you submit a PR @buddudevelopers ?
Author
Owner

@AchoArnold commented on GitHub (Nov 27, 2024):

This is not needed. I just ran the docker build and I could run the frontend perfectly without any permission change.

<!-- gh-comment-id:2504518239 --> @AchoArnold commented on GitHub (Nov 27, 2024): This is not needed. I just ran the docker build and I could run the frontend perfectly without any permission change.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/httpsms#61
No description provided.