Gunner2 commited on
Commit
8488a81
1 Parent(s): 0b7155d

Create .env

Browse files
Files changed (1) hide show
  1. .env +146 -0
.env ADDED
@@ -0,0 +1,146 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 | dall-e | claude | claude-opus | gemini-pro | mistral-tiny | mistral-small | mistral-medium | mistral-large | aws-claude | azure-turbo | azure-gpt4 | azure-gpt4-32k | azure-gpt4-turbo | 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,claude,claude-opus,gemini-pro,mistral-tiny,mistral-small,mistral-medium,mistral-large,aws-claude,azure-turbo,azure-gpt4,azure-gpt4-32k,azure-gpt4-turbo
48
+
49
+ # URLs from which requests will be blocked.
50
+ # BLOCKED_ORIGINS=reddit.com,9gag.com
51
+ # Message to show when requests are blocked.
52
+ # BLOCK_MESSAGE="You must be over the age of majority in your country to use this service."
53
+ # Destination to redirect blocked requests to.
54
+ # BLOCK_REDIRECT="https://roblox.com/"
55
+
56
+ # Comma-separated list of phrases that will be rejected. Only whole words are matched.
57
+ # Surround phrases with quotes if they contain commas.
58
+ # Avoid short or common phrases as this tests the entire prompt.
59
+ # REJECT_PHRASES="phrase one,phrase two,"phrase three, which has a comma",phrase four"
60
+ # Message to show when requests are rejected.
61
+ # REJECT_MESSAGE="This content violates /aicg/'s acceptable use policy."
62
+
63
+ # Whether prompts should be logged to Google Sheets.
64
+ # Requires additional setup. See `docs/google-sheets.md` for more information.
65
+ # PROMPT_LOGGING=false
66
+
67
+ # The port and network interface to listen on.
68
+ # PORT=7860
69
+ # BIND_ADDRESS=0.0.0.0
70
+
71
+ # Whether cookies should be set without the Secure flag, for hosts that don't support SSL.
72
+ # USE_INSECURE_COOKIES=false
73
+
74
+ # Detail level of logging. (trace | debug | info | warn | error)
75
+ # LOG_LEVEL=info
76
+
77
+ # ------------------------------------------------------------------------------
78
+ # Optional settings for user management, access control, and quota enforcement:
79
+ # See `docs/user-management.md` for more information and setup instructions.
80
+ # See `docs/user-quotas.md` to learn how to set up quotas.
81
+
82
+ # Which access control method to use. (none | proxy_key | user_token)
83
+ GATEKEEPER=user_token
84
+ # Which persistence method to use. (memory | firebase_rtdb)
85
+ GATEKEEPER_STORE=firebase_rtdb
86
+
87
+ # Maximum number of unique IPs a user can connect from. (0 for unlimited)
88
+ # MAX_IPS_PER_USER=0
89
+ # Whether user_tokens should be automatically disabled when reaching the IP limit.
90
+ # MAX_IPS_AUTO_BAN=true
91
+
92
+ # With user_token gatekeeper, whether to allow users to change their nickname.
93
+ # ALLOW_NICKNAME_CHANGES=true
94
+
95
+ # Default token quotas for each model family. (0 for unlimited)
96
+ # DALL-E "tokens" are counted at a rate of 100000 tokens per US$1.00 generated,
97
+ # which is similar to the cost of GPT-4 Turbo.
98
+ # DALL-E 3 costs around US$0.10 per image (10000 tokens).
99
+ # See `docs/dall-e-configuration.md` for more information.
100
+ # TOKEN_QUOTA_TURBO=0
101
+ # TOKEN_QUOTA_GPT4=0
102
+ # TOKEN_QUOTA_GPT4_32K=0
103
+ # TOKEN_QUOTA_GPT4_TURBO=0
104
+ # TOKEN_QUOTA_DALL_E=0
105
+ # TOKEN_QUOTA_CLAUDE=0
106
+ # TOKEN_QUOTA_GEMINI_PRO=0
107
+ # TOKEN_QUOTA_AWS_CLAUDE=0
108
+
109
+ # How often to refresh token quotas. (hourly | daily)
110
+ # Leave unset to never automatically refresh quotas.
111
+ # QUOTA_REFRESH_PERIOD=daily
112
+
113
+ # Specifies the number of proxies or load balancers in front of the server.
114
+ # For Cloudflare or Hugging Face deployments, the default of 1 is correct.
115
+ # For any other deployments, please see config.ts as the correct configuration
116
+ # depends on your setup. Misconfiguring this value can result in problems
117
+ # accurately tracking IP addresses and enforcing rate limits.
118
+ # TRUSTED_PROXIES=1
119
+
120
+ # ------------------------------------------------------------------------------
121
+ # Secrets and keys:
122
+ # For Huggingface, set them via the Secrets section in your Space's config UI. Dp not set them in .env.
123
+ # For Render, create a "secret file" called .env using the Environment tab.
124
+
125
+ # You can add multiple API keys by separating them with a comma.
126
+ # For AWS credentials, separate the access key ID, secret key, and region with a colon.
127
+ #OPENAI_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
128
+ #ANTHROPIC_KEY=sk-ant-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
129
+ # See `docs/aws-configuration.md` for more information, there may be additional steps required to set up AWS.
130
+ AWS_CREDENTIALS=myaccesskeyid:mysecretkey:us-east-1,anotheraccesskeyid:anothersecretkey:us-west-2
131
+ # See `docs/azure-configuration.md` for more information, there may be additional steps required to set up Azure.
132
+ AZURE_CREDENTIALS=azure-resource-name:deployment-id:api-key,another-azure-resource-name:another-deployment-id:another-api-key
133
+
134
+ # With proxy_key gatekeeper, the password users must provide to access the API.
135
+ # PROXY_KEY=your-secret-key
136
+
137
+ # With user_token gatekeeper, the admin password used to manage users.
138
+ # ADMIN_KEY=your-very-secret-key
139
+
140
+ # With firebase_rtdb gatekeeper storage, the Firebase project credentials.
141
+ # FIREBASE_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
142
+ # FIREBASE_RTDB_URL=https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.firebaseio.com
143
+
144
+ # With prompt logging, the Google Sheets credentials.
145
+ # GOOGLE_SHEETS_SPREADSHEET_ID=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
146
+ # GOOGLE_SHEETS_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx