Skip to content

Store and present Publish Config from publish node - #108

Open
monoxane wants to merge 4 commits into
anyproto:mainfrom
monoxane:feat/publish_network_config
Open

Store and present Publish Config from publish node#108
monoxane wants to merge 4 commits into
anyproto:mainfrom
monoxane:feat/publish_network_config

Conversation

@monoxane

@monoxane monoxane commented Apr 8, 2026

Copy link
Copy Markdown
  • I understand that contributing to this repository will require me to agree with the CLA

Description

This PR adds functionality to read network-wide publishing limits and domain configuration from this publish-server's config file, and exposes this information to clients with a (*publishclient.Client)GetPublishConfig dRPC handler.

This functionality improves the security of publishing within an Anytype network as it will allow clients to rely on a central source of truth for this configuration instead of hard-coding it in each client.

This functionality is also required to effectively implement publishing in a self-hosted network as per #107

What type of PR is this? (check all applicable)

  • 🍕 Feature
  • 🐛 Bug Fix
  • 📝 Documentation Update
  • 🎨 Style
  • 🧑‍💻 Code Refactor
  • 🔥 Performance Improvements
  • ✅ Test
  • 🤖 Build
  • 🔁 CI

Related Tickets & Documents

This PR is a component of Self Hosted Publish Improvements

Added tests?

  • 👍 yes
  • 🙅 no, because they aren't needed
  • 🙋 no, because I need help

Added to documentation?

  • 📜 README.md
  • 📓 tech-docs.
  • 🙅 no documentation needed

Documentation will be added to tech-docs once the feature is complete across all aspects of the ecosystem

@github-actions

github-actions Bot commented Apr 8, 2026

Copy link
Copy Markdown

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@monoxane monoxane changed the title Feat/publish network config Store and present Publish Config from publish node Apr 8, 2026
@monoxane

monoxane commented Apr 8, 2026

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

@felipemisso

Copy link
Copy Markdown

Just finished setting up a self-hosted any-sync network on Oracle Cloud A1 (ARM64) and this PR is exactly what's blocking the last piece. Currently the only way to point the desktop app at a custom publish server is via env vars at launch — workable on Mac, but completely impossible on iOS.

Once this lands and clients can discover the publish server config from the coordinator, it would unlock iOS publishing for self-hosted networks too (assuming anytype-ios implements the GetPublishConfig call).

Would love to see this merged. Happy to test on self-hosted ARM64 if that helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants