Skip to content

Commit 6158920

Browse files
committed
Fixed sample.env, added more comments for clarification
1 parent 1976484 commit 6158920

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

app-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,15 @@ organization:
88
stackoverflow:
99
baseUrl: ${STACK_OVERFLOW_INSTANCE_URL}
1010
# teamName: ${STACK_OVERFLOW_TEAM_NAME}
11+
1112
apiAccessToken: ${STACK_OVERFLOW_API_ACCESS_TOKEN}
13+
# The API Access Token is used for the Questions' collator, a no-expiry, read-only token is recommended.
14+
1215
clientId: ${STACK_OVERFLOW_CLIENT_ID}
16+
# The clientid must be for an API Application with read-write access.
17+
1318
redirectUri: ${STACK_OVERFLOW_REDIRECT_URI}
19+
# This should redirect to your Stack Overfow for Teams route on Backstage. E.g. https://<backstage-domain>/stack-overflow-teams
1420

1521
backend:
1622
# Used for enabling authentication, secret is shared by all backend plugins

packages/backend/sample.env

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
STACK_OVERFLOW_INSTANCE_URL=https://[your-site]/api/v3
2-
# This token doesn't needd scope=write_access, this is only use to create an index of all the questions of your Stack Overflow instance
3-
STACK_OVERFLOW_ENTERPRISE_ACCESS_TOKEN=
4-
# API Application must have read-write permissions, please provide the application's id
5-
STACK_OVERFLOW_CLIENT_ID=
2+
# This token doesn't needd scope=write_access, this is only use to create an index of all the questions of your Stack Overflow instance.
3+
STACK_OVERFLOW_API_ACCESS_TOKEN=
4+
# API Application must have read-write permissions, please provide the application's id.
5+
STACK_OVERFLOW_CLIENT_ID=
6+
# To run the integration on localhost, we need to redirect to localhost. SOE Requires a top-level domain, therefore we are using a redirection service that takes you to localhost. If you do have Backstage on a top level domain, change the redirect uri accordingly.
7+
STACK_OVERFLOW_REDIRECT_URI=http://redirectmeto.com/http://localhost:3000/stack-overflow-teams

0 commit comments

Comments
 (0)