Storage cannot be used properly through the Docker self host's Supabase #16836
Replies: 6 comments 10 replies
-
Setting JWT Secret,SERVICE_KWY and ANON_KEY again without reloading the page solved the problem. |
Beta Was this translation helpful? Give feedback.
-
I have a similar problem; I've been struggling for two days to install Supabase on my own Ubuntu 22.04 server. Currently, I managed to set up Supabase deployment using Docker, following the official documentation. However, there are still some issues that I can't resolve. For example, the storage section in the Dashboard is not working for me. I can't see the list of all Buckets and create a new one. Also, it's entirely unclear what values to set for the variables, surprisingly, they don't seem to affect anything, and the values with http://localhost and with my subdomain https://studio.mariadent.ru.
I've been reading discussions on this topic for two days, but everyone writes differently. And here is my Nginx configuration:
|
Beta Was this translation helpful? Give feedback.
-
Hello everyone, I'm taking the time to share my experience because I spent countless hours trying to understand how to set up Supabase for self-hosting using Docker and Nginx. The lack of detailed documentation on Supabase's official site forced me to sift through numerous forums and tutorials, which were often outdated or overly complicated, making the process unnecessarily difficult. I believe it would benefit the community if the Supabase team would seriously consider adding specific documentation for setup with Nginx and SSL certificates integration. I encountered several errors with the Supabase storage configuration, notably a major issue that prevented file uploads to the bucket from the Studio interface. The issue was related to the Docker .env configuration. Following the documentation, I had set my domain as: API_EXTERNAL_URL=https://myserveraddress.com:8000. However, since Nginx redirects traffic from port 8000 to Kong, it's incorrect to include the port in the URL. The correct configuration is simply: API_EXTERNAL_URL=https://myserveraddress.com, letting Nginx handle the traffic redirection to Kong. Here's a simplified example of the Nginx configuration that worked for me: ` location / { There's no need to add other specific routes in the Nginx configuration; Kong takes care of the rest. I noticed that many tutorials suggested adding unnecessary configurations, complicating the process for no reason. The issue that was preventing uploads turned out to be Supabase Studio trying to connect to port 8000. I hope my feedback will help others navigate the self-hosting setup of Supabase more smoothly. Thank you for considering these suggestions to improve the documentation and enhance the user experience. |
Beta Was this translation helpful? Give feedback.
-
Hi guys, I have same problem and I make a video to help you solve some problems, is easy. |
Beta Was this translation helpful? Give feedback.
-
this is a lost cause lmao, you're forced to use the cloud version of supabase to make things actually work |
Beta Was this translation helpful? Give feedback.
-
Bug report
Describe the bug
When I use Docker self-host to access Storage through the dashboard, an error of 500 will be reported. When creating a new bucket, errors will also be generated.
logs
This seems to be a validation error in JWT, but according to the official documentation configuration and my entry into the storage container to check env, there are no issues
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Expected behavior
Normal use of storage function.
Screenshots
System information
Beta Was this translation helpful? Give feedback.
All reactions