-
Notifications
You must be signed in to change notification settings - Fork 0
Configuring Abflags
Trần Văn Điệp edited this page Nov 6, 2024
·
4 revisions
This is the guide one how to configure Abflags v1 self-hosted.
In order for the Abflags server to operate, you need a running database and details to connect to it.
The available options are listed in the table below. We use typeorm to connect to your database.
| Environment variable | Default value | Description |
|---|---|---|
| MYSQL_HOST | 127.0.0.1 | The database host |
| MYSQL_PORT | 3306 | The database port |
| MYSQL_USER | abflags | The database username |
| MYSQL_PASS | abflags | The database password |
| MYSQL_DB | abflags | The name of the database |
After this, we will provide detailed instructions on how to create users and databases, and how to grant user permissions to run Abflags.
- Create user:
create user 'abflags'@'%' identified by '<password>';- Grant permissions:
GRANT SELECT, UPDATE, INSERT, DELETE, INSERT, DROP, TRIGGER, CREATE, ALTER, INDEX ON abflags.* TO 'abflags'@'%';REDIS_URI: uri for cache api, ex: redis://127.0.0.1:6379
REDIS_HOST: the redis host
REDIS_PORT: the redis port
Created by dieptv1999