Spaces:
Running
Running
Deploy Aureon OS (deploy/selfhost stack: nginx edge + fusion API x2 + console + HNC organ + redis + postgres; paper mode) (part 7)
c626614 verified Download deploy/selfhost/postgres/01_roles.sql from GaryLeckey/aureon-os: direct link, hf CLI and curl.
- Browser
- Download file 521 Bytes
-
https://huggingface.co/spaces/GaryLeckey/aureon-os/resolve/main/deploy/selfhost/postgres/01_roles.sql
- Command line
-
hf download hf://spaces/GaryLeckey/aureon-os/deploy/selfhost/postgres/01_roles.sql
-
curl -L -o 01_roles.sql https://huggingface.co/spaces/GaryLeckey/aureon-os/resolve/main/deploy/selfhost/postgres/01_roles.sql
521 Bytes
| -- Local self-host roles. These are database roles, not provider credentials. | |
| DO $$ | |
| BEGIN | |
| IF NOT EXISTS (SELECT 1 FROM pg_roles WHERE rolname = 'anon') THEN | |
| CREATE ROLE anon NOLOGIN; | |
| END IF; | |
| IF NOT EXISTS (SELECT 1 FROM pg_roles WHERE rolname = 'authenticated') THEN | |
| CREATE ROLE authenticated NOLOGIN; | |
| END IF; | |
| IF NOT EXISTS (SELECT 1 FROM pg_roles WHERE rolname = 'service_role') THEN | |
| CREATE ROLE service_role NOLOGIN BYPASSRLS; | |
| END IF; | |
| END | |
| $$; | |
| ALTER ROLE service_role BYPASSRLS; | |