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

A 403 error #70

Open
RMiLogix opened this issue Dec 14, 2023 · 1 comment
Open

A 403 error #70

RMiLogix opened this issue Dec 14, 2023 · 1 comment

Comments

@RMiLogix
Copy link

RMiLogix commented Dec 14, 2023

When uploading pictures on the picture bed and opening pictures ending with .jpg, the following prompts:
{"success":false,"statusCode":403,"timestamp":"2023-12-14T00:20:35.437Z","timeMs":2,"data":{"type":"permission","message":"Permission denied"}}
I don’t know why this problem occurs, nor how to reproduce it.I have provided some docker logs and background configuration content, hoping to find the problem.
Details are as follows:

image.png
image.png

Docker log:

docker_picsur.csv


Contents of Docker-compose:

version: '3'
services:
  picsur:
    image: ghcr.io/caramelfur/picsur:latest
    container_name: picsur
    ports:
      - '8003:8080'
    environment:
      PICSUR_HOST: '0.0.0.0'
      PICSUR_PORT: 8080
      PICSUR_DB_HOST: picsur_postgres
      PICSUR_DB_PORT: 5432
      PICSUR_DB_USERNAME: picsur
      PICSUR_DB_PASSWORD: nice-long-strong-passw0rd-here
      PICSUR_DB_DATABASE: picsur
      PICSUR_ADMIN_PASSWORD: xxxxxx
      # PICSUR_JWT_SECRET: CHANGE_ME
      # PICSUR_JWT_EXPIRY: 7d
     
      PICSUR_MAX_FILE_SIZE: 1280000000  # 128 MB
      ## No need to touch this, unless you use a custom frontend
      # PICSUR_STATIC_FRONTEND_ROOT: "/picsur/frontend/dist"

      ## Warning: Verbose mode might log sensitive data
      # PICSUR_VERBOSE: "true"
    restart: unless-stopped
    
  picsur_postgres:
    image: postgres:14-alpine
    container_name: picsur_postgres
    environment:
      POSTGRES_DB: picsur
      POSTGRES_PASSWORD: nice-long-strong-passw0rd-here
      POSTGRES_USER: picsur
    restart: unless-stopped
    volumes:
      - ./picsur-data:/var/lib/postgresql/data
@cwinl
Copy link

cwinl commented Apr 25, 2024

login with user admin. give guest user privilege: View Images.

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