General
Here are some system configurations, you can configure some system parameters here, such as the port to listen on, the address to listen on, logs, etc.
Configuration
The configuration includes the following parameters:
mode
: The mode of the service. You can set it tolocal
orremote
. If you deploy this service on a remote server, it is recommended to set mode toremote
. Optionalport
: The port to listen on. Optionalhost
: The address to listen on. Optionaldebug
: If there are some problems, you can set debug to true. Optionallogger
: If you want to use Fastify Logger, you can set logger to true. Optionalwatch
: If you want the service to listen to the changes of the configuration file and update automatically, you can set watch to true. OptionalHttps
: The configuration for HTTPS. Optionalenabled
: Enable HTTPS. Optionalhost
: The host to the certificate file (in auto generate mode). Optionalkey
: The path to the key file. Optionalcert
: The path to the certificate file. Optionalca
: The path to the CA file. Optional
Permissions
: The configuration for permissions. Optional ^v0.7.0-beta.1Full
: The full permissions. OptionalSync
: The sync permissions. OptionalAi
: The AI permissions. OptionalTranslation
: The translation permissions. Optional
HTTPS Note
When Https.key
, Https.cert
, Https.ca
are configured, a custom certificate will be used, and the configuration of Https.host
will be ignored, and the certificate will not be generated automatically.
Please refer to the Generate Self-signed Certificate to use with Raycast Unblock - Intercept Raycast guide for more information.
Permissions Note
You need to fill in the user's email inside. For example:
toml
[General.Permissions]
Full = [ 'ray@pro.com' ]
The above example means that the user with the email ray@pro.com
has full permission to use.
Full
is the full permission to use, if you write inFull
, you don't need to write anywhere else, and the rest is up to you to understand.- The Raycast Client instance must successfully request
/me
to record the User - Currently, due to design reasons, the User record will be lost every time Ray Pro restarts
Example
toml
[General]
# mode = "local"
# port = 3000
# host = "0.0.0.0"
# debug = false
# logger = false
# watch = false
[General.Https]
# enabled = true
# host = '192.168.3.2'
# key = "path
# cert = "path"
# ca = "path"
# [General.Permissions]
# Full = []
# Sync = []
# Ai = []
# Translation = []