Skip to content

Commit

Permalink
apihostnameを表示
Browse files Browse the repository at this point in the history
  • Loading branch information
ekkekuru2 committed Sep 12, 2023
1 parent d885836 commit 7ff6b06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class Settings(BaseSettings):
access_token_expire:datetime.timedelta=datetime.timedelta(days=10)

production_flag:int=os.getenv("PRODUCTION_FLAG",0)
api_hostname:str=os.getenv("API_HOSTNAME","DEFAULT")

## Cloudflare deploy hook url
cloudflare_deploy_hook_url:str=os.getenv("CLOUDFLARE_DEPLOY_HOOK_URL","")
Expand Down
1 change: 1 addition & 0 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"""
if settings.production_flag==1:
description+="<h2>本番環境</h2>"
description+=settings.api_hostname

tags_metadata = [
{
Expand Down

0 comments on commit 7ff6b06

Please sign in to comment.