Giter VIP home page Giter VIP logo

Comments (9)

ghecquet avatar ghecquet commented on August 19, 2024

Hi there,

Can you please use the forum in the future to ask for help on a setup issue
? (https://github.com/pydio/cells/blob/master/CONTRIBUTING.md)

That being said, you should try removing the CELLS_NO_SSL (and re-adding the CELLS_EXTERNAL config). This will start the pydio cells with ssl self_signed. Communication between your proxy and cells should then be using ssl, so redirect to https instead of http.

The way the CELLS_EXTERNAL currently work is that you can't have a different domain / protocol than what is setup in the proxy at the moment. That is a shortcoming we've been recently been made aware of and we'll add that to the documentation shortly.

Thanks,
Greg

from cells.

Berndinox avatar Berndinox commented on August 19, 2024

HY @ghecquet - thanks for the quick response, from my pov this was an issue. You may add a quick notice to the Documentation so Users got not confused (like me) :)

One more Question:
On Pydio Compose i've added:
- "traefik.protocol=https"
to tell the proxy its a ssl backend, fine.

Second: I've added insecureSkipVerify = true to traefik config to allow self signed certs.

I was only able to access the setup from outside with:

        - CELLS_BIND=cloud.berndklaus.at:8080
        - CELLS_EXTERNAL=cloud.berndklaus.at:8080
        - CELLS_NO_SSL=0

Setup runs and finished, no Error in the logs.
But after Install the site does not load. Any ideas?

from cells.

gardart avatar gardart commented on August 19, 2024

@Berndinox did you ever get this to work with Traefik (and ssl)?
I was playing with this all day without success, I always end up with the same error as you had.

from cells.

ghecquet avatar ghecquet commented on August 19, 2024

Hi, can you please give any more details on your configuration to see if we can help you out ?

Thanks,
Greg

from cells.

gardart avatar gardart commented on August 19, 2024

Sure, I'm going to do a fresh install and I will post the output here later this week
Thanks

from cells.

johackim avatar johackim commented on August 19, 2024

This configuration works :

# pydio.yml

version: '3'

services:
  pydio:
    image: pydio/cells:1.2.1
    volumes: ["data:/root/.config/pydio/cells:nocopy"]
    environment:
      - CELLS_BIND=0.0.0.0:8080
      - CELLS_EXTERNAL=${DOMAIN:?err}
      - CELLS_NO_SSL=1
    deploy:
      labels:
        traefik.port: 8080
        traefik.frontend.rule: Host:${DOMAIN:?err}
        traefik.enable: "true"
        traefik.docker.network: traefik-net
    networks:
      - internal
      - traefik

  mysql:
    image: mysql:5.7
    volumes: ["mysql:/var/lib/mysql:nocopy"]
    environment:
      MYSQL_ROOT_PASSWORD: P@ssw0rd
      MYSQL_DATABASE: cells
      MYSQL_USER: pydio
      MYSQL_PASSWORD: P@ssw0rd
    networks:
      - internal

volumes:
  data:
  mysql:

networks:
  internal:
  traefik:
    external:
      name: traefik-net

After deploy with DOMAIN=mydomain.com docker stack deploy -c pydio.yml pydio, I changed manually the /root/.config/pydio/cells/pydio.json file with the good url param :

"url": "http://mydomain.com" -> "url": "https://mydomain.com"

Thanks to @bschulz87

from cells.

Mohl avatar Mohl commented on August 19, 2024

I stuck quite some time on this - you HAVE to add a port to the CELLS_BIND value.

Here are my envs for Pydio with jrcs' letsencrypt-nginx-proxy-companion:

CELLS_NO_SSL | 0
CELLS_EXTERNAL | pydio.my.domain
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
CELLS_VERSION | 1.2.1
VIRTUAL_HOST | pydio.my.domain
LETSENCRYPT_HOST | pydio.my.domain
LETSENCRYPT_EMAIL | [email protected]
VIRTUAL_PORT | 8080
CELLS_BIND | pydio.my.domain:8080 //<- This port is MANDATORY!

from cells.

cdujeu avatar cdujeu commented on August 19, 2024

Thx @Mohl indeed we have updated the docs for that. Closing this for now.

from cells.

thepenguinthatwants avatar thepenguinthatwants commented on August 19, 2024

Hi!

Sorry for bumping closed issue.

I tried to get this work on locally. But getting weird sql issues. Has this image being changed or something?

I tried to make it work locally.

version: '3'

services:
  pydio:
    image: pydio/cells:1.2.1
    volumes: ["data:/root/.config/pydio/cells:nocopy"]
    environment:
      - CELLS_BIND=0.0.0.0:8080
      - CELLS_EXTERNAL=pydio.localhost 
      # - CELLS_NO_SSL=1
    labels:
        traefik.port: 8080
        traefik.frontend.rule: Host:pydio.localhost
        traefik.enable: "true"
        traefik.docker.network: srv
    networks:
      - internal
      - srv

  mysql:
    image: mysql:5.7
    volumes: ["mysql:/var/lib/mysql:nocopy"]
    environment:
      MYSQL_ROOT_PASSWORD: P@ssw0rd
      MYSQL_DATABASE: cells
      MYSQL_USER: pydio
      MYSQL_PASSWORD: P@ssw0rd
    networks:
      - internal

volumes:
  data:
  mysql:

networks:
  internal:
  srv:
    external: true

Logs says

mysql_1  | 2019-07-04T19:08:49.566727Z 0 [Warning] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
mysql_1  | 2019-07-04T19:08:49.589832Z 0 [Note] Event Scheduler: Loaded 0 events
mysql_1  | 2019-07-04T19:08:49.589991Z 0 [Note] mysqld: ready for connections.
mysql_1  | Version: '5.7.26'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  MySQL Community Server (GPL)
pydio_1  | 2019-07-04T19:08:49.857Z     INFO    Cannot find default database! Please make sure that databases are correctly configured and started.
lufi_pydio_1 exited with code 

from cells.

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.