Comments (8)
I have removed BACKEND_URL
completely, so now there's only POCKETBASE_URL
config option (PUBLIC_POCKETBASE_URL
in .env
) that defaults to http://localhost:8090
.
Currently, only the URLs to files stored in PB are proxied through the app instance, but my goal is to proxy all PB calls through Grimoire itself - it will further simplify networking in the deployed project.
Edit: I will close this issue now, but you are welcome to create another one for related problems/questions.
from grimoire.
Hello @tamaskan! These two values are poorly named, I admit it. If the PB is being deployed by Docker Compose method, the BACKEND_URL
will be different from POCKETBASE_URL
, but if the app is run in dev mode (or the PB instance is an external one), the URL will be the same.
I want to simplify the configuration and the deployment process in the near future.
from grimoire.
Ah, okay. I am currently trying to use an internal pocketbase-installation, but when i enter the url in pocketbase_url, the healthcheck uses that too and the login fails with "405 method not allowed"
from grimoire.
using my public installation the login-url (http 303) returns a blank token ( pb_auth=%7B%22token%22%3A%22%22%2C%22model%22%3A%7B%7D%7D; Path=/; Expires=Thu, 01 Jan 1970 00:00:00 GMT; SameSite=Strict ) and the page just refreshes. Couldn't find any errors inside the pocketbase-admin or container-logs
from grimoire.
scratch that. since grimoir uses the internal proxy, cookie based sso fails (in my case with a 303 redirect).
from grimoire.
I'm not sure if the docs are outdated or if is related to this conversation, but the docker example, when you don't change the .env.example defaults, it doesn't work.
I think is related to this setting.
# Set it if you're using external PocketBase installation (default: http://localhost:8090)
# Example: PUBLIC_POCKETBASE_URL=https://grimoire.mydomain.com:8090
PUBLIC_POCKETBASE_URL=
which doesn't default to localhost but to pocketbase:80
Is that correct? the issue comes that the dashboard can't connect to pocketbase
because is trying to reach a "domain" instead of localhost
from grimoire.
does the pocketbase-connection override the auth-header ? i wanted to use something like https://user:[email protected]/pb
from grimoire.
@SrGeneroso It's failing for me too - calling it (PocketBase) directly from the app container on http://pocketbase/api/health
also doesn't work. I will look into this today.
@tamaskan PB does use Authorization: TOKEN
header approach to handle authentication.
from grimoire.
Related Issues (20)
- Ollama URL from settings is not respected. HOT 7
- Trying to add a bookmark without a category triggers an error HOT 3
- Could not connect to Pocketbase HOT 14
- Subcategories of subcategories do not show in left column
- Top-level category does not show all bookmarks under subcategories or the subcategories of those subcategories. HOT 2
- Feature request HOT 1
- Internal Proxy Cookies & docker-latest HOT 15
- Grimoire API not reachable HOT 6
- Add Bookmark and Edit buttons not working HOT 1
- Be able to search by text in the Content field HOT 1
- 500 error when searching on clean install: "Invalid filter parameters."
- Website favicon HOT 1
- Incorrect Tag Links HOT 1
- could not connect to pocketbase HOT 8
- Bookmark pictures not loading HOT 5
- [Feature] Link Behavior HOT 1
- Could not connect to Pocketbase HOT 12
- Fuzzy search via search endpoint HOT 2
- Constantly being logged out and no media is loading HOT 2
- Cannot login as admin HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grimoire.