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

add self-hosted plan for self-hosted flavor #6156

Closed
darkskygit opened this issue Mar 17, 2024 · 29 comments
Closed

add self-hosted plan for self-hosted flavor #6156

darkskygit opened this issue Mar 17, 2024 · 29 comments
Assignees
Milestone

Comments

@darkskygit
Copy link
Member

No description provided.

@darkskygit darkskygit added this to the AFFiNE 0.14.0 milestone Mar 17, 2024
@darkskygit darkskygit self-assigned this Mar 17, 2024
@affine-issue-bot
Copy link

Upcoming in: v0.14.0

We've got great news! 🚀 This issue's fix/feature is slated for release in AFFiNE v0.14.0.
Subscribe to this issue for a notification when the release goes live!

This is an automatic reply by the bot.

@github-project-automation github-project-automation bot moved this to 🆕 *Untriaged in AFFiNE Project Mar 17, 2024
@affine-issue-bot
Copy link

affine-issue-bot bot commented Mar 17, 2024

Issue Status: 💡 Open

💡 Open

We want to implement the fix or feature in the near future. We can’t promise it will appear in the next public release, but it’s on our short list.

This is an automatic reply by the bot.

@darkskygit darkskygit changed the title add unlimited plan for self-hosted flavor add self-hosted plan for self-hosted flavor Mar 17, 2024
@EYHN EYHN moved this from 🆕 *Untriaged to 💡 Open in AFFiNE Project Mar 17, 2024
@greedyhao

This comment was marked as off-topic.

@pengx17

This comment was marked as off-topic.

@EYHN

This comment was marked as off-topic.

@greedyhao

This comment was marked as off-topic.

@gymnae

This comment was marked as outdated.

@darkskygit

This comment was marked as off-topic.

@gymnae

This comment was marked as off-topic.

@darkskygit

This comment was marked as off-topic.

@hilsonp

This comment was marked as off-topic.

@darkskygit

This comment was marked as off-topic.

@gymnae

This comment was marked as off-topic.

@darkskygit

This comment was marked as off-topic.

@hilsonp

This comment was marked as off-topic.

@gymnae

This comment was marked as off-topic.

@darkskygit

This comment was marked as outdated.

@darkskygit

This comment was marked as off-topic.

@nansenat16

This comment was marked as off-topic.

@darkskygit

This comment was marked as off-topic.

@almereyda

This comment was marked as off-topic.

@gymnae

This comment was marked as off-topic.

@darkskygit
Copy link
Member Author

darkskygit commented Mar 31, 2024

the original intention of this issue is to "promote the repair of the self-hosted plan" rather than "what feature should self-hosted have?" or "what license should an open source project have?"
there are already too many off-topic discussions, i am here Mark all off-topic discussions as off-topic.

if you have any questions and discussions related to self-hosted, please go to: https://github.com/toeverything/AFFiNE/discussions to discuss

@alissa-tung
Copy link

Hello, curious about is there progress on it? Is self host version can still only have three users in one workspace, and the space is limited to 10 GiB?

@Artaud
Copy link

Artaud commented Apr 29, 2024

Hello, curious about is there progress on it? Is self host version can still only have three users in one workspace, and the space is limited to 10 GiB?

You can set your users to be on the Pro plan manually in the database, which raises the limits.

@alissa-tung
Copy link

Hello, curious about is there progress on it? Is self host version can still only have three users in one workspace, and the space is limited to 10 GiB?

You can set your users to be on the Pro plan manually in the database, which raises the limits.

Thank you, I had connect to the self-host pg, would it be convenient to share which table has the field for pro? thank you

@Artaud
Copy link

Artaud commented Apr 29, 2024

It's not hard to figure out - the user_features table has a feature_id column which links the user to a specific plan, listed in the features table.
I have my users set to 6, which is the pro_plan_v1.

@alissa-tung
Copy link

It's not hard to figure out - the user_features table has a feature_id column which links the user to a specific plan, listed in the features table. I have my users set to 6, which is the pro_plan_v1.

Thank you, save my day!

@alissa-tung
Copy link

alissa-tung commented Apr 30, 2024

from

seems that even with pro_plan_v1, memberLimit is set to 10, maybe I should package an image my self

NO need for a new docker image


The correct feature_id for user_features is in table features, which may look like

docker exec -it affine_postgres psql -U affine
affine=# select id, feature, configs from features where feature = 'pro_plan_v1';
 id |   feature   |                                                    configs                                                    
----+-------------+---------------------------------------------------------------------------------------------------------------
  6 | pro_plan_v1 | {"name":"Pro","blobLimit":104857600,"storageQuota":107374182400,"historyPeriod":2592000000,"memberLimit":100}
 11 | pro_plan_v1 | {"name":"Pro","blobLimit":104857600,"storageQuota":107374182400,"historyPeriod":2592000000,"memberLimit":100}
(2 rows)

in the configs, update JSON to one with larger memberLimit is enough.

after that, reboot the docker compose

@linear linear bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

10 participants