Skip to content

Commit

Permalink
# fix json_path ref public_path
Browse files Browse the repository at this point in the history
  • Loading branch information
czy21 committed Dec 24, 2024
1 parent a529740 commit af41aee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion asu/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ class Settings(BaseSettings):
model_config = SettingsConfigDict(env_file=".env", env_file_encoding="utf-8")

public_path: Path = Path.cwd() / "public"
json_path: Path = public_path / "json" / "v1"

@property
def json_path(self):
return self.public_path / "json" / "v1"

redis_url: str = "redis://localhost:6379"
upstream_url: str = "https://downloads.openwrt.org"
allow_defaults: bool = False
Expand Down
2 changes: 2 additions & 0 deletions podman-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ services:
restart: always
environment:
- REDIS_URL=redis://redis/
volumes:
- $PUBLIC_PATH:$PUBLIC_PATH:rw
ports:
- "127.0.0.1:8000:8000"
depends_on:
Expand Down

0 comments on commit af41aee

Please sign in to comment.