NdoleStudio / httpsms

Send and receive SMS messages using your Android phone programmatically via a simple HTTP API
https://httpsms.com
GNU Affero General Public License v3.0
400 stars 89 forks source link

There is file permissions issue in WebUi #565

Open buddudevelopers opened 2 days ago

buddudevelopers commented 2 days ago

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 commented 2 days ago

Can you submit a PR @buddudevelopers ?