Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bagussatoto/supabase-admin-aplikasi
API to administer the Supabase server (KPS)
https://github.com/bagussatoto/supabase-admin-aplikasi
Last synced: about 1 month ago
JSON representation
API to administer the Supabase server (KPS)
- Host: GitHub
- URL: https://github.com/bagussatoto/supabase-admin-aplikasi
- Owner: bagussatoto
- License: mit
- Created: 2021-08-03T07:21:34.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T05:32:01.000Z (11 months ago)
- Last Synced: 2024-05-01T17:38:38.837Z (7 months ago)
- Language: Go
- Size: 45.9 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Supabase Admin API Server
To run on KPS and administer configs for services:
- Kong
- Gotrue
- Realtime
- Postgrest
- Pg-listen## ENV
requires a `.env` in the project root with:
```bash
JWT_SECRET=
```## API Interface
### Auth
You must set the `apikey` header to be a valid JWT token, signed by JWT_SECRET and with a claim of: `role: supabase_admin`
### Configs
GET `/config/postgrest` - returns current config `{ raw_contents: }`
POST `/config/postgrest` - sets new config - params: `{ raw_contents: , restart_services : }`
GET `/config/kong` - returns current config `{ raw_contents: }`
POST `/config/kong` - sets new config - params: `{ raw_contents: , restart_services : }`
GET `/config/pglisten` - returns current config `{ raw_contents: }`
POST `/config/pglisten` - sets new config - params: `{ raw_contents: , restart_services : }`
GET `/config/realtime` - returns current config `{ raw_contents: }`
POST `/config/realtime` - sets new config - params: `{ raw_contents: , restart_services : }`
GET `/config/gotrue` - returns current config as `{ raw_contents: }`
POST `/config/gotrue` - sets new config - params: `{ raw_contents: , restart_services : }`
### Restarting
GET `/services/restart` - re-reads all configs and restarts all services
GET `/services/reboot` - reboot the server
### Logs
GET `/logs///` - get logs for a given application (postgrest,kong,admin,gotrue,syslog,pglisten)
## Sponsors
We are building the features of Firebase using enterprise-grade, open source products. We support existing communities wherever possible, and if the products don’t exist we build them and open source them ourselves. Thanks to these sponsors who are making the OSS ecosystem better for everyone.
[![New Sponsor](https://user-images.githubusercontent.com/10214025/90518111-e74bbb00-e198-11ea-8f88-c9e3c1aa4b5b.png)](https://github.com/sponsors/supabase)