Skip to content

What is the purpose of PUBLIC_ORIGIN or PUBLIC_HOST? #856

Answered by tea-artist
kenset asked this question in Q&A
Discussion options

You must be logged in to vote

Teable's deployment model requires using an external IP or domain name to access MinIO, rather than localhost or 127.0.0.1. This is because Teable needs to access the file service (MinIO) from both the server-side and client-side. The server uses MinIO's presignedUrl API to authorize file access, while the client directly accesses MinIO through signed URLs. In Docker containers, 127.0.0.1 always points to the current container, preventing Teable from correctly accessing MinIO. Although the server could use internal DNS (service name "minio") to access MinIO, this would generate presignedUrls with "minio" as the hostname, making it impossible for the client to access correctly.

The current…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@kenset
Comment options

@kenset
Comment options

@tea-artist
Comment options

Answer selected by tea-artist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants