Code Monkey home page Code Monkey logo

Comments (7)

lastsamurai26 avatar lastsamurai26 commented on June 23, 2024

Do you using 443 between docker and caddy ?

from linkstack-docker.

0x3639 avatar 0x3639 commented on June 23, 2024

Here is my docker compose file. When using caddy and I reverse_proxy to http://localIP:8188 the site loads. When I change the reverse_proxy to https://localIP:8190 I get a 502 error.

version: "3.8"

services:

  linkstack:
    hostname: 'linkstack'
    image: 'linkstackorg/linkstack:latest'
    environment:
      TZ: 'America/Chicago'
      SERVER_ADMIN: '[email protected]'
      HTTP_SERVER_NAME: 'my.znn.link'
      HTTPS_SERVER_NAME: 'my.znn.link'
      LOG_LEVEL: 'info'
      PHP_MEMORY_LIMIT: '256M'
      UPLOAD_MAX_FILESIZE: '8M'
    volumes:
      - 'linkstack_data:/htdocs'
    ports:
      - '8188:80'
      - '8190:443'
    restart: unless-stopped

volumes:
  linkstack_data:

from linkstack-docker.

0x3639 avatar 0x3639 commented on June 23, 2024

I'm using Caddy on a different server. I don't think that should cause an issue.

from linkstack-docker.

0x3639 avatar 0x3639 commented on June 23, 2024

I solved the problem with this Caddyfile change below. Need to accept self signed certificates. This fixed the Submit Secure error. However, i'm still stuck impersonating another user. When I login as admin, I'm asked to authenticate my account (as the impersonated user) and when I select logout it logs me out as admin, not the person I'm trying to impersonate.

I log back in as admin and I'm still impersonating the user who is trying to authenticate their email.

How can I manually get out of impersonating another user?

yourdomain.com {
    reverse_proxy https://localhost:port {
        transport http {
            tls_insecure_skip_verify
        }
    }
}

from linkstack-docker.

lastsamurai26 avatar lastsamurai26 commented on June 23, 2024

image
use the "X" on the right top corner (:

from linkstack-docker.

0x3639 avatar 0x3639 commented on June 23, 2024

Unfortunately I cannot login to see that page. I'm "stuck" impersonating someone who needs to verify their email address and cannot return to my admin profile. I can only see the Verify Email page or log out. I log out, then log back in and am presented with the verify email page of the person I'm impersonating.

I had to remove the volume and start over. But this could be a bug you should look into.

from linkstack-docker.

lastsamurai26 avatar lastsamurai26 commented on June 23, 2024

can you show me your /httpdocs/.env file ?

and check the sqlite file
in the table users you can find a colum named "auth_as" check this or set it to 0

from linkstack-docker.

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.