-
Notifications
You must be signed in to change notification settings - Fork 1
Slack credential validation, dead config cleanup, Docker digest pinning #42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
henry0816191
wants to merge
6
commits into
develop
Choose a base branch
from
bugfix/slack-credential-docker-pin
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
cd74635
Slack credential validation, dead config cleanup, Docker digest pinning
henry0816191 6ae74cf
fixed docker test errors
henry0816191 71b9da5
docker image container error
henry0816191 d35f6ba
CI docker container error
henry0816191 d9b5dc1
addressed AI reivews
henry0816191 8c82d73
addressed ai review results
henry0816191 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,72 +1,75 @@ | ||
| # Slack credentials (required) | ||
| # --- Required credentials --- | ||
| # Slack (required for production; tests set _PAPERSCOUT_TESTING=1 to skip validation) | ||
| SLACK_SIGNING_SECRET=your-signing-secret | ||
| SLACK_BOT_TOKEN=xoxb-your-bot-token | ||
|
|
||
| # Server | ||
| # PostgreSQL (required) — shared PostgreSQL on the host. | ||
| # When running in Docker, use host.docker.internal to reach the host: | ||
| DATABASE_URL=postgresql://paperscout:[email protected]:5432/paperscout | ||
|
|
||
| # --- Server (optional) --- | ||
| PORT=3000 | ||
| HEALTH_PORT=8080 | ||
| # Bind address for GET /health (127.0.0.1 = localhost only). Docker Compose sets HEALTH_BIND_HOST=0.0.0.0. | ||
| HEALTH_BIND_HOST=127.0.0.1 | ||
|
|
||
| # Database (required) — shared PostgreSQL on the host. | ||
| # When running in Docker, use host.docker.internal to reach the host: | ||
| DATABASE_URL=postgresql://paperscout:[email protected]:5432/paperscout | ||
|
|
||
| # Scheduling | ||
| # --- Scheduling (optional) --- | ||
| POLL_INTERVAL_MINUTES=30 | ||
| # Min sleep after an overrun cycle (poll took > poll_interval_minutes). | ||
| POLL_OVERRUN_COOLDOWN_SECONDS=300 | ||
| ENABLE_BULK_WG21=true | ||
| ENABLE_BULK_OPENSTD=true | ||
| ENABLE_ISO_PROBE=true | ||
|
|
||
| # Probe prefixes / extensions (used for gap/unknown numbers) | ||
| # --- Probe prefixes / extensions (optional) --- | ||
| PROBE_PREFIXES=["D","P"] | ||
| PROBE_EXTENSIONS=[".pdf",".html"] | ||
|
|
||
| # Frontier | ||
| # --- Frontier (optional) --- | ||
| FRONTIER_WINDOW_ABOVE=60 | ||
| FRONTIER_WINDOW_BELOW=30 | ||
| FRONTIER_EXPLICIT_RANGES=[] | ||
| # Max gap between consecutive P-numbers before treating a number as an outlier | ||
| # (filters pre-assigned far-future numbers like P5000 from the frontier). | ||
| FRONTIER_GAP_THRESHOLD=50 | ||
|
|
||
| # Hot probing (every poll cycle) | ||
| # --- Hot probing (optional) --- | ||
| # Papers with a date within this many months are probed every 30 min. | ||
| HOT_LOOKBACK_MONTHS=6 | ||
| # Revisions ahead of the known latest to probe for hot papers. | ||
| HOT_REVISION_DEPTH=2 | ||
|
|
||
| # Cold probing (distributed across cold_cycle_divisor cycles ≈ once per day) | ||
| # --- Cold probing (optional) --- | ||
| COLD_REVISION_DEPTH=1 | ||
| # 48 × 30 min = 24 h; every P-number gets probed once within this window. | ||
| COLD_CYCLE_DIVISOR=48 | ||
|
|
||
| # Gap / unknown numbers (no index entry): probe R0 through this revision. | ||
| GAP_MAX_REV=1 | ||
|
|
||
| # Timestamp-based alerting | ||
| # --- Timestamp-based alerting (optional) --- | ||
| # Only notify for drafts where the server's Last-Modified header is within | ||
| # this many hours of now. Falls back to "alert" when the header is absent. | ||
| ALERT_MODIFIED_HOURS=24 | ||
|
|
||
| # HTTP client | ||
| # --- HTTP client (optional) --- | ||
| HTTP_CONCURRENCY=20 | ||
| HTTP_TIMEOUT_SECONDS=10 | ||
| HTTP_USE_HTTP2=true | ||
|
|
||
| # Notifications | ||
| # --- Notifications (optional) --- | ||
| # Slack channel ID for draft notifications; empty = channel posts disabled. | ||
| NOTIFICATION_CHANNEL= | ||
| # Slack channel ID for ops alerts (stale poll); empty = disabled. | ||
| OPS_ALERT_CHANNEL= | ||
| NOTIFY_ON_FRONTIER_HIT=true | ||
| NOTIFY_ON_ANY_DRAFT=true | ||
| NOTIFY_ON_DP_TRANSITION=true | ||
|
|
||
| # Storage | ||
| # --- Storage (optional) --- | ||
| DATA_DIR=./data | ||
| CACHE_TTL_HOURS=1 | ||
|
|
||
| # Logging | ||
| # --- Logging (optional) --- | ||
| # Log level for both console and file (DEBUG|INFO|WARNING|ERROR). | ||
| LOG_LEVEL=INFO | ||
| LOG_RETENTION_DAYS=7 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.