Skip to content

Commit dee38a8

Browse files
authored
Merge pull request #2 from PlatformNetwork/dev
v1.0.0 Platform
2 parents 616dfac + 19d4298 commit dee38a8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+8390
-479
lines changed

.env.server.example

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# ============================================================================
2+
# Platform Server Configuration
3+
# ============================================================================
4+
# Copy this file to .env.server and fill in your values
5+
# Usage: docker compose -f docker-compose.server.yml --env-file .env.server up -d
6+
# ============================================================================
7+
8+
# =============================================================================
9+
# REQUIRED: Owner Configuration
10+
# =============================================================================
11+
12+
# Your subnet owner hotkey (SS58 format)
13+
OWNER_HOTKEY=5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY
14+
15+
# Challenge ID (default: term-bench)
16+
CHALLENGE_ID=term-bench
17+
18+
# =============================================================================
19+
# Database Configuration
20+
# =============================================================================
21+
22+
# PostgreSQL credentials
23+
POSTGRES_USER=postgres
24+
POSTGRES_PASSWORD=your_secure_password_here
25+
POSTGRES_DB=postgres
26+
POSTGRES_PORT=5432
27+
28+
# =============================================================================
29+
# Server Configuration
30+
# =============================================================================
31+
32+
# Server port (default: 8080)
33+
SERVER_PORT=8080
34+
35+
# Challenge container URL (internal docker network)
36+
CHALLENGE_URL=http://term-challenge:8081
37+
38+
# Challenge container external port (default: 8081)
39+
CHALLENGE_PORT=8081
40+
41+
# =============================================================================
42+
# Logging & Monitoring
43+
# =============================================================================
44+
45+
# Log level
46+
RUST_LOG=info,platform_server=debug
47+
48+
# Sentry DSN for error tracking (optional)
49+
# SENTRY_DSN=https://xxx@sentry.io/xxx
50+
51+
# =============================================================================
52+
# Environment (optional)
53+
# =============================================================================
54+
55+
# Environment name for Sentry (production, staging, development)
56+
# ENVIRONMENT=production

.githooks/pre-push

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,27 @@ if ! cargo clippy --workspace -- \
4141
-A clippy::type_complexity \
4242
-A clippy::await_holding_lock \
4343
-A clippy::collapsible_match \
44-
-A clippy::collapsible_if; then
44+
-A clippy::collapsible_if \
45+
-A clippy::needless_borrows_for_generic_args \
46+
-A clippy::to_string_in_format_args \
47+
-A clippy::manual_map \
48+
-A clippy::map_flatten \
49+
-A clippy::useless_format \
50+
-A clippy::redundant_closure \
51+
-A deprecated \
52+
-A dead_code \
53+
-A clippy::for_kv_map \
54+
-A clippy::to_string_trait_impl \
55+
-A clippy::if_same_then_else \
56+
-A unused_variables \
57+
-A unused_imports \
58+
-A clippy::useless_conversion \
59+
-A for_loops_over_fallibles \
60+
-A clippy::manual_filter_map \
61+
-A clippy::collapsible_str_replace \
62+
-A clippy::manual_is_multiple_of \
63+
-A clippy::map_entry \
64+
-A clippy::manual_flatten; then
4565
echo -e "${RED}ERROR: Clippy found issues.${NC}"
4666
echo "Fix clippy warnings before pushing."
4767
exit 1

0 commit comments

Comments
 (0)