File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8787 --env EMAIL_PASS='${{ secrets.EMAIL_PASS }}' \
8888 --env SMTP_HOST='smtp.gmail.com' \
8989 --env SMTP_PORT='587' \
90- --env HOST ='${{ secrets.HOST }}' \
90+ --env APPLICATION_HOST ='${{ secrets.HOST }}' \
9191 --name ${{ env.CONTAITER_NAME }} \
9292 ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:test
9393
@@ -132,6 +132,6 @@ jobs:
132132 --env ENABLED_AUTH_METHODS='${{ secrets.ENABLED_AUTH_METHODS }}' \
133133 --env SMTP_HOST='smtp.gmail.com' \
134134 --env SMTP_PORT='587' \
135- --env HOST ='${{ secrets.HOST }}' \
135+ --env APPLICATION_HOST ='${{ secrets.HOST }}' \
136136 --name ${{ env.CONTAITER_NAME }} \
137- ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
137+ ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ async def register(user_inp: EmailRegister) -> ResponseModel | JSONResponse:
140140 await Email ._change_confirmation_link (auth_method .user , confirmation_token )
141141 send_confirmation_email (
142142 to_addr = user_inp .email ,
143- link = f"{ settings .HOST } /email/approve?token={ confirmation_token } " ,
143+ link = f"{ settings .APPLICATION_HOST } /email/approve?token={ confirmation_token } " ,
144144 )
145145 return ResponseModel (status = "Success" , message = "Email confirmation link sent" )
146146 if user_inp .user_id and user_inp .token :
@@ -152,7 +152,7 @@ async def register(user_inp: EmailRegister) -> ResponseModel | JSONResponse:
152152 await Email ._add_to_db (user_inp , confirmation_token , user )
153153 send_confirmation_email (
154154 to_addr = user_inp .email ,
155- link = f"{ settings .HOST } /email/approve?token={ confirmation_token } " ,
155+ link = f"{ settings .APPLICATION_HOST } /email/approve?token={ confirmation_token } " ,
156156 )
157157 return JSONResponse (
158158 status_code = 201 , content = ResponseModel (status = "Success" , message = "Email confirmation link sent" ).json ()
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ class Settings(BaseSettings):
77 DB_DSN : PostgresDsn
88
99 EMAIL : str | None
10- HOST : str = "localhost"
10+ APPLICATION_HOST : str = "localhost"
1111 EMAIL_PASS : str = None
1212 SMTP_HOST : str = 'smtp.gmail.com'
1313 SMTP_PORT : int = 587
You can’t perform that action at this time.
0 commit comments