Code Monkey home page Code Monkey logo

Comments (6)

affine-issue-bot avatar affine-issue-bot commented on September 23, 2024

Issue Status: ✅ Done

✅ Done

If the issue was a bug, it’s been fixed; if it was a missing feature, it’s been implemented.

This is an automatic reply by the bot.

from affine.

EYHN avatar EYHN commented on September 23, 2024

@darkskygit pls take a look

from affine.

darkskygit avatar darkskygit commented on September 23, 2024

are you using the docker compose file in our repo? seems the AFFINE_SERVER_HOST and AFFINE_SERVER_HTTPS env are not effective
if you using k8s, you need import the envs by corresponding syntax in k8s config

or if you using docker-compose, please provide the command that you using to bootstrap the containers

from affine.

GritsanY avatar GritsanY commented on September 23, 2024

are you using the docker compose file in our repo? seems the AFFINE_SERVER_HOST and AFFINE_SERVER_HTTPS env are not effective if you using k8s, you need import the envs by corresponding syntax in k8s config

or if you using docker-compose, please provide the command that you using to bootstrap the containers

I am using podman with podman-compose to build containers from official compose.yml (https://github.com/toeverything/AFFiNE/blob/canary/.github/deployment/self-host/compose.yaml).
I can see that the volume with the config folder was successfully mounted and the .env file can be read from inside the container:

# podman inspect affine_selfhosted
...
 "Mounts": [
               {
                    "Type": "bind",
                    "Source": "/root/.affine/self-host/config",
                    "Destination": "/root/.affine/config",
                    "Driver": "",
                    "Mode": "",
                    "Options": [
                         "rbind"
                    ],
                    "RW": true,
                    "Propagation": "rprivate"
               },
               {
                    "Type": "bind",
                    "Source": "/root/.affine/self-host/storage",
                    "Destination": "/root/.affine/storage",
                    "Driver": "",
                    "Mode": "",
                    "Options": [
                         "rbind"
                    ],
...
# podman exec affine_selfhosted cat /root/.affine/config/.env
AFFINE_PRIVATE_KEY=-----BEGIN EC PRIVATE KEY-----
[REDACTED]==
-----END EC PRIVATE KEY-----

# AFFINE_SERVER_PORT=3010
# AFFINE_SERVER_HOST=affine.[REDACTED]
# AFFINE_SERVER_HTTPS=true
# DATABASE_URL="postgres://affine@localhost:5432/affine"

from affine.

darkskygit avatar darkskygit commented on September 23, 2024
# podman exec affine_selfhosted cat /root/.affine/config/.env
# AFFINE_SERVER_PORT=3010
# AFFINE_SERVER_HOST=affine.[REDACTED]
# AFFINE_SERVER_HTTPS=true
# DATABASE_URL="postgres://affine@localhost:5432/affine"

please remove # prefix

from affine.

GritsanY avatar GritsanY commented on September 23, 2024
# podman exec affine_selfhosted cat /root/.affine/config/.env
# AFFINE_SERVER_PORT=3010
# AFFINE_SERVER_HOST=affine.[REDACTED]
# AFFINE_SERVER_HTTPS=true
# DATABASE_URL="postgres://affine@localhost:5432/affine"

please remove # prefix

Wow, that's so embarrassing 😁 Issue is fixed, obviously.
Thank you and sorry for the time taken.

from affine.

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.