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
Copy file name to clipboardExpand all lines: README.md
+19-10Lines changed: 19 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -147,7 +147,7 @@ The longest streak is the highest number of consecutive days on which you have m
147
147
148
148
The current streak is the number of consecutive days ending with the current day on which you have made at least one contribution. If you have made a contribution today, it will be counted towards the current streak, however, if you have not made a contribution today, the streak will only count days before today so that your streak will not be zero.
149
149
150
-
> [!NOTE]
150
+
> [!NOTE]
151
151
> You may need to wait up to 24 hours for new contributions to show up ([Learn how contributions are counted](https://docs.github.com/articles/why-are-my-contributions-not-showing-up-on-my-profile))
152
152
153
153
## 📤 Deploying it on your own
@@ -164,7 +164,7 @@ The Inkscape dependency is required for PNG rendering, as well as Segoe UI font
164
164
165
165
Vercel is the recommended option for hosting the files since it is **free** and easy to set up. Watch the video below or expand the instructions to learn how to deploy to Vercel.
166
166
167
-
> [!NOTE]
167
+
> [!NOTE]
168
168
> PNG mode is not supported since Inkscape will not be installed but the default SVG mode will work.
169
169
170
170
### 📺 [Click here for a video tutorial on how to self-host on Vercel](https://www.youtube.com/watch?v=maoXtlb8t44)
@@ -210,14 +210,15 @@ Vercel is the recommended option for hosting the files since it is **free** and
210
210
9. Scroll to the bottom of the page and click on **"Generate token"**
211
211
10. Visit the Vercel dashboard at <https://vercel.com/dashboard> and select your project. Then, click on **"Settings"** and choose **"Environment Variables"**.
212
212
11. Add a new environment variable with the key `TOKEN` and the value as the token you generated in step 9, then save your changes
213
-
12. To apply the new environment variable, you need to redeploy the app. Run `vercel --prod` to deploy the app to production.
213
+
12. (Optional) You can also set the `WHITELIST` environment variable to restrict which GitHub usernames can be accessed through the service. Provide the usernames as a comma-separated list, for example: `user1,user2,user3`. If the variable is not set, information can be requested for any GitHub user.
214
+
13. To apply the new environment variable, you need to redeploy the app. Run `vercel --prod` to deploy the app to production.
> To set up automatic Vercel deployments from GitHub, make sure to turn **off** "Include source files outside of the Root Directory" in the General settings and use `vercel` as the production branch in the Git settings.
219
220
220
-
> ⚠️ **Note**
221
+
> ⚠️ **Note**
221
222
> If you receive an error related to libssl or Node 20.x, you can fix this by opening your Vercel project settings and changing the Node.js version to 18.x.
@@ -230,9 +231,9 @@ Heroku is another great option for hosting the files. All features are supported
230
231
231
232
<details>
232
233
<summary><b>Instructions for deploying to Heroku (Paid)</b></summary>
233
-
234
+
234
235
### Step-by-step instructions for deploying to Heroku
235
-
236
+
236
237
1. Sign in to **Heroku** or create a new account at <https://heroku.com>
237
238
2. Visit [this link](https://github.com/settings/tokens/new?description=GitHub%20Readme%20Streak%20Stats) to create a new Personal Access Token (no scopes required)
238
239
3. Scroll to the bottom and click **"Generate token"**
@@ -244,8 +245,9 @@ Heroku is another great option for hosting the files. All features are supported
7. Once the app is deployed, you can use `<your-app-name>.herokuapp.com` in place of `streak-stats.demolab.com`
248
+
6. (Optional) You can also set the `WHITELIST` Config Var to restrict which GitHub usernames can be accessed through the service. Provide the usernames as a comma-separated list, for example: `user1,user2,user3`. If the variable is not set, information can be requested for any GitHub user.
249
+
7. Click **"Deploy App"** at the end of the form
250
+
8. Once the app is deployed, you can use `<your-app-name>.herokuapp.com` in place of `streak-stats.demolab.com`
249
251
250
252
</details>
251
253
@@ -285,7 +287,14 @@ Docker is a great option for self-hosting with full control over your environmen
285
287
docker run -d -p 8080:80 -e TOKEN=your_github_token_here streak-stats
286
288
```
287
289
288
-
6. Visit http://localhost:8080 to access your self-hosted instance
290
+
6. You can also optionally set the `WHITELIST` environment variable to restrict which GitHub usernames can be accessed through the service. If the `WHITELIST` variable is not set, information can be requested for any GitHub user.
291
+
Provide the usernames as a comma-separated list, for example:
292
+
293
+
```bash
294
+
docker run -d -p 8080:80 -e TOKEN=your_github_token_here -e WHITELIST=user1,user2,user3 streak-stats
295
+
```
296
+
297
+
7. Visit http://localhost:8080 to access your self-hosted instance
0 commit comments