Giter Site home page Giter Site logo

Comments (6)

CorwinDev avatar CorwinDev commented on May 30, 2024

Hi,
Can you try opening the file app/Http/Middleware/TrustProxies.php on your VPS (located at /var/www/paymenter) and change

protected $proxies;

To

protected $proxies = "*";

from paymenter.

CorwinDev avatar CorwinDev commented on May 30, 2024

Note for myself: Add option to enable that you're behind proxy in admin panel itself

from paymenter.

gps949 avatar gps949 commented on May 30, 2024

Just a reminder, could this issue be fixed in the official release version? At least, the problem still persists in the Docker deployment scenario.

from paymenter.

CorwinDev avatar CorwinDev commented on May 30, 2024

We're currently in the process of rewrite Paymenter, when the next version comes, this feature will be included!

from paymenter.

gps949 avatar gps949 commented on May 30, 2024

We're currently in the process of rewrite Paymenter, when the next version comes, this feature will be included!

That's great!
The current functionality of Paymenter is already powerful, and we can look forward to the new version being even more stable.

from paymenter.

dysf888 avatar dysf888 commented on May 30, 2024

Hi, Can you try opening the file app/Http/Middleware/TrustProxies.php on your VPS (located at /var/www/paymenter) and change

protected $proxies;

To

protected $proxies = "*";

The problem still exists
image

compose

version: '3.8'
x-common:
  database:
    &db-env
    MYSQL_PASSWORD: &db-password "xxxxx"
    MYSQL_ROOT_PASSWORD: "xxxxx"
  panel:
    &pm-env
    APP_NAME: Paymenter
    APP_ENV: production
    APP_KEY: xxxxx
    APP_DEBUG: false
    APP_URL: https://xxxxxxxx
    LOG_CHANNEL: stack
    LOG_DEPRECATIONS_CHANNEL: null
    LOG_LEVEL: debug
    DB_CONNECTION: mysql
    DB_HOST: database
    DB_PORT: 3306
    DB_DATABASE: paymenter
    DB_USERNAME: paymenter
    BROADCAST_DRIVER: log
    CACHE_DRIVER: file
    FILESYSTEM_DISK: local
    QUEUE_CONNECTION: database
    SESSION_DRIVER: file
    SESSION_LIFETIME: 120
    MEMCACHED_HOST: cache

services:
  database:
    image: mariadb:10.5
    restart: always
    command: --default-authentication-plugin=mysql_native_password
    volumes:
      - "/opt/paymenter/database:/var/lib/mysql"
    environment:
      <<: *db-env
      MYSQL_DATABASE: "paymenter"
      MYSQL_USER: "paymenter"
  cache:
    image: redis:alpine
    restart: always
  paymenter:
    image: ghcr.io/paymenter/paymenter:master
    restart: always
    links:
      - database
      - cache
    volumes:
      - "/opt/paymenter/var/:/app/var/"
      - "/opt/paymenter/logs/:/app/storage/logs"
    environment:
      <<: *pm-env
      DB_PASSWORD: *db-password
  proxy:
    image: nginx:stable-alpine3.17-slim
    restart: always
    links:
      - paymenter
    volumes:
      - "/opt/paymenter/nginx/:/etc/nginx/conf.d"
      - "/opt/paymenter/certs/:/etc/certs/"
    networks:
      default:
        ipv4_address: 172.26.99.99
networks:
  default:
    ipam:
      config:
        - subnet: 172.26.99.0/24

zerotrust:
image

from paymenter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.