You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You should also enable development mode with the `DEVELOPMENT` environment variable.
25
28
26
-
- For Unix: `export DEVELOPMENT=1`
27
-
- Windows (CMD): `set DEVELOPMENT=1`
28
-
- Windows (Powershell): `$env:DEVELOPMENT=1`
29
+
-For Unix: `export DEVELOPMENT=1`
30
+
-Windows (CMD): `set DEVELOPMENT=1`
31
+
-Windows (Powershell): `$env:DEVELOPMENT=1`
29
32
30
33
For local development, you can use the built-in flask server with `poetry run serve`.
31
34
@@ -35,23 +38,23 @@ For local development, you can use the built-in flask server with `poetry run se
35
38
36
39
# Environment Variables
37
40
38
-
-`OAUTHLIB_INSECURE_TRANSPORT`: disable ssl for oauth
39
-
-`DEVELOPMENT`: Development mode, increased logging and reads environment variables from `.env.dev`
40
-
-`STAGING`: Staging mode, reads environment variables from `.env.staging`
41
+
-`OAUTHLIB_INSECURE_TRANSPORT`: Disable SSL requirement for OAuth2
42
+
-`DEVELOPMENT`: Development mode, increased logging and loads configuration from `config.dev.toml`
43
+
-`STAGING`: Staging mode, loads configuration from `config.staging.toml`
41
44
42
45
# Deploy
43
46
44
47
Gunicorn is the recommended to run the server in production.
45
48
46
49
Example command to run on port 8081 listening on all interfaces:
47
50
48
-
-`poetry run gunicorn -w 1 -b 0.0.0.0:8081 getwvkeys.main:app`
51
+
-`poetry run gunicorn -w 1 -b 0.0.0.0:8081 getwvkeys.main:app`
49
52
50
53
_never use more than 1 worker, getwvkeys does not currently support that and you will encounter issues with sessions._
51
54
52
55
# Other Info
53
56
54
-
- Redis is used as a pub-sub system for communication with the Discord Bot. If you don't plan to use the bot, you don't need to setup redis and can comment it out in the `.env` file: `#REDIS_URI=redis://localhost:6379/0`
55
-
- GetWVKeys uses dynamic injection for scripts, this means that when a user downloads a script and is logged in, the server injects certain values by replacing strings such as their API key. Available placeholders are:
56
-
-`__getwvkeys_api_key__`: Authenticated users api key
57
-
-`__getwvkeys_api_url__`: The instances API URL, this is used for staging and production mainly but can also be used for self hosted instances
57
+
-Redis is used as a pub-sub system for communication with the Discord Bot. If you don't plan to use the bot, you don't need to setup redis and can comment it out in the `.env` file: `#REDIS_URI=redis://localhost:6379/0`
58
+
-GetWVKeys uses dynamic injection for scripts, this means that when a user downloads a script and is logged in, the server injects certain values by replacing strings such as their API key. Available placeholders are:
59
+
-`__getwvkeys_api_key__`: Authenticated users api key
60
+
-`__getwvkeys_api_url__`: The instances API URL, this is used for staging and production mainly but can also be used for self hosted instances
0 commit comments