MarcusAureliusAntoninus commited on
Commit
baa114b
·
verified ·
1 Parent(s): 1b5061a

Create config.env

Browse files
Files changed (1) hide show
  1. config.env +171 -0
config.env ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # To customize your server, make a copy of this file to `.env` and edit any
2
+ # values you want to change. Be sure to remove the `#` at the beginning of each
3
+ # line you want to modify.
4
+
5
+ # All values have reasonable defaults, so you only need to change the ones you
6
+ # want to override.
7
+
8
+ # Use production mode unless you are developing locally.
9
+ NODE_ENV=production
10
+
11
+ # ------------------------------------------------------------------------------
12
+ # General settings:
13
+
14
+ # The title displayed on the info page.
15
+ # SERVER_TITLE=Coom Tunnel
16
+
17
+ # The route name used to proxy requests to APIs, relative to the Web site root.
18
+ # PROXY_ENDPOINT_ROUTE=/proxy
19
+
20
+ # Text model requests allowed per minute per user.
21
+ # TEXT_MODEL_RATE_LIMIT=4
22
+ # Image model requests allowed per minute per user.
23
+ # IMAGE_MODEL_RATE_LIMIT=2
24
+
25
+ # Max number of context tokens a user can request at once.
26
+ # Increase this if your proxy allow GPT 32k or 128k context
27
+ # MAX_CONTEXT_TOKENS_OPENAI=16384
28
+
29
+ # Max number of output tokens a user can request at once.
30
+ # MAX_OUTPUT_TOKENS_OPENAI=400
31
+ # MAX_OUTPUT_TOKENS_ANTHROPIC=400
32
+
33
+ # Whether to show the estimated cost of consumed tokens on the info page.
34
+ # SHOW_TOKEN_COSTS=false
35
+
36
+ # Whether to automatically check API keys for validity.
37
+ # Note: CHECK_KEYS is disabled by default in local development mode, but enabled
38
+ # by default in production mode.
39
+ # CHECK_KEYS=true
40
+
41
+ # Which model types users are allowed to access.
42
+ # The following model families are recognized:
43
+ # turbo | gpt4 | gpt4-32k | gpt4-turbo | gpt4o | dall-e | claude | claude-opus | gemini-pro | mistral-tiny | mistral-small | mistral-medium | mistral-large | aws-claude | aws-claude-opus | gcp-claude | gcp-claude-opus | azure-turbo | azure-gpt4 | azure-gpt4-32k | azure-gpt4-turbo | azure-gpt4o | azure-dall-e
44
+ # By default, all models are allowed except for 'dall-e' / 'azure-dall-e'.
45
+ # To allow DALL-E image generation, uncomment the line below and add 'dall-e' or
46
+ # 'azure-dall-e' to the list of allowed model families.
47
+ ALLOWED_MODEL_FAMILIES=turbo,gpt4,gpt4-32k,gpt4-turbo,gpt4o,claude,claude-opus,gemini-pro,mistral-tiny,mistral-small,mistral-medium,mistral-large,aws-claude,aws-claude-opus,gcp-claude,gcp-claude-opus,azure-turbo,azure-gpt4,azure-gpt4-32k,azure-gpt4-turbo,azure-gpt4o
48
+
49
+ # Which services can be used to process prompts containing images via multimodal
50
+ # models. The following services are recognized:
51
+ # openai | anthropic | aws | gcp | azure | google-ai | mistral-ai
52
+ # Do not enable this feature unless all users are trusted, as you will be liable
53
+ # for any user-submitted images containing illegal content.
54
+ # By default, no image services are allowed and image prompts are rejected.
55
+ # ALLOWED_VISION_SERVICES=
56
+
57
+ # IP addresses or CIDR blocks from which requests will be blocked.
58
+ # IP_BLACKLIST=10.0.0.1/24
59
+ # URLs from which requests will be blocked.
60
+ # BLOCKED_ORIGINS=reddit.com,9gag.com
61
+ # Message to show when requests are blocked.
62
+ # BLOCK_MESSAGE="You must be over the age of majority in your country to use this service."
63
+ # Destination to redirect blocked requests to.
64
+ # BLOCK_REDIRECT="https://roblox.com/"
65
+
66
+ # Comma-separated list of phrases that will be rejected. Only whole words are matched.
67
+ # Surround phrases with quotes if they contain commas.
68
+ # Avoid short or common phrases as this tests the entire prompt.
69
+ # REJECT_PHRASES="phrase one,phrase two,"phrase three, which has a comma",phrase four"
70
+ # Message to show when requests are rejected.
71
+ # REJECT_MESSAGE="You can't say that here."
72
+
73
+ # Whether prompts should be logged to Google Sheets.
74
+ # Requires additional setup. See `docs/google-sheets.md` for more information.
75
+ # PROMPT_LOGGING=false
76
+
77
+ # The port and network interface to listen on.
78
+ # PORT=7860
79
+ # BIND_ADDRESS=0.0.0.0
80
+
81
+ # Whether cookies should be set without the Secure flag, for hosts that don't support SSL.
82
+ # USE_INSECURE_COOKIES=false
83
+
84
+ # Detail level of logging. (trace | debug | info | warn | error)
85
+ # LOG_LEVEL=info
86
+
87
+ # Captcha verification settings. Refer to docs/pow-captcha.md for guidance.
88
+ # CAPTCHA_MODE=none
89
+ # POW_TOKEN_HOURS=24
90
+ # POW_TOKEN_MAX_IPS=2
91
+ # POW_DIFFICULTY_LEVEL=low
92
+ # POW_CHALLENGE_TIMEOUT=30
93
+
94
+ # ------------------------------------------------------------------------------
95
+ # Optional settings for user management, access control, and quota enforcement:
96
+ # See `docs/user-management.md` for more information and setup instructions.
97
+ # See `docs/user-quotas.md` to learn how to set up quotas.
98
+
99
+ # Which access control method to use. (none | proxy_key | user_token)
100
+ # GATEKEEPER=none
101
+ # Which persistence method to use. (memory | firebase_rtdb)
102
+ # GATEKEEPER_STORE=memory
103
+
104
+ # Maximum number of unique IPs a user can connect from. (0 for unlimited)
105
+ # MAX_IPS_PER_USER=0
106
+ # Whether user_tokens should be automatically disabled when reaching the IP limit.
107
+ # MAX_IPS_AUTO_BAN=true
108
+
109
+ # With user_token gatekeeper, whether to allow users to change their nickname.
110
+ # ALLOW_NICKNAME_CHANGES=true
111
+
112
+ # Default token quotas for each model family. (0 for unlimited)
113
+ # Specify as TOKEN_QUOTA_MODEL_FAMILY=value, replacing dashes with underscores.
114
+ # TOKEN_QUOTA_TURBO=0
115
+ # TOKEN_QUOTA_GPT4=0
116
+ # TOKEN_QUOTA_GPT4_32K=0
117
+ # TOKEN_QUOTA_GPT4_TURBO=0
118
+ # TOKEN_QUOTA_CLAUDE=0
119
+ # TOKEN_QUOTA_GEMINI_PRO=0
120
+ # TOKEN_QUOTA_AWS_CLAUDE=0
121
+ # TOKEN_QUOTA_GCP_CLAUDE=0
122
+ # "Tokens" for image-generation models are counted at a rate of 100000 tokens
123
+ # per US$1.00 generated, which is similar to the cost of GPT-4 Turbo.
124
+ # DALL-E 3 costs around US$0.10 per image (10000 tokens).
125
+ # See `docs/dall-e-configuration.md` for more information.
126
+ # TOKEN_QUOTA_DALL_E=0
127
+
128
+ # How often to refresh token quotas. (hourly | daily)
129
+ # Leave unset to never automatically refresh quotas.
130
+ # QUOTA_REFRESH_PERIOD=daily
131
+
132
+ # Specifies the number of proxies or load balancers in front of the server.
133
+ # For Cloudflare or Hugging Face deployments, the default of 1 is correct.
134
+ # For any other deployments, please see config.ts as the correct configuration
135
+ # depends on your setup. Misconfiguring this value can result in problems
136
+ # accurately tracking IP addresses and enforcing rate limits.
137
+ # TRUSTED_PROXIES=1
138
+
139
+ # ------------------------------------------------------------------------------
140
+ # Secrets and keys:
141
+ # For Huggingface, set them via the Secrets section in your Space's config UI. Dp not set them in .env.
142
+ # For Render, create a "secret file" called .env using the Environment tab.
143
+
144
+ # You can add multiple API keys by separating them with a comma.
145
+ # For AWS credentials, separate the access key ID, secret key, and region with a colon.
146
+ # For GCP credentials, separate the project ID, client email, region, and private key with a colon.
147
+ OPENAI_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
148
+ ANTHROPIC_KEY=sk-ant-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
149
+ # See `docs/aws-configuration.md` for more information, there may be additional steps required to set up AWS.
150
+ AWS_CREDENTIALS=myaccesskeyid:mysecretkey:us-east-1,anotheraccesskeyid:anothersecretkey:us-west-2
151
+ # See `docs/azure-configuration.md` for more information, there may be additional steps required to set up Azure.
152
+ AZURE_CREDENTIALS=azure-resource-name:deployment-id:api-key,another-azure-resource-name:another-deployment-id:another-api-key
153
+ GCP_CREDENTIALS=project-id:client-email:region:private-key
154
+
155
+ # With proxy_key gatekeeper, the password users must provide to access the API.
156
+ # PROXY_KEY=your-secret-key
157
+
158
+ # With user_token gatekeeper, the admin password used to manage users.
159
+ # ADMIN_KEY=your-very-secret-key
160
+ # To restrict access to the admin interface to specific IP addresses, set the
161
+ # ADMIN_WHITELIST environment variable to a comma-separated list of CIDR blocks.
162
+ # ADMIN_WHITELIST=0.0.0.0/0
163
+
164
+
165
+ # With firebase_rtdb gatekeeper storage, the Firebase project credentials.
166
+ # FIREBASE_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
167
+ # FIREBASE_RTDB_URL=https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.firebaseio.com
168
+
169
+ # With prompt logging, the Google Sheets credentials.
170
+ # GOOGLE_SHEETS_SPREADSHEET_ID=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
171
+ # GOOGLE_SHEETS_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx