Skip to content

Commit 157306d

Browse files
committed
chore: adjust gateway integration
1 parent 10cd6f4 commit 157306d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

app/modules/riot_integration/services/riot_api_service.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def get(path)
9696

9797
def internal_jwt
9898
payload = { service: 'prostaff-api', exp: 1.hour.from_now.to_i }
99-
JWT.encode(payload, ENV.fetch('JWT_SECRET_KEY'), 'HS256')
99+
JWT.encode(payload, ENV.fetch('INTERNAL_JWT_SECRET'), 'HS256')
100100
end
101101

102102
def handle_response(response)

docker/docker-compose.production.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ services:
121121
RAILS_MASTER_KEY: '${RAILS_MASTER_KEY}'
122122
RIOT_API_KEY: '${RIOT_API_KEY}'
123123
RIOT_GATEWAY_URL: '${RIOT_GATEWAY_URL}'
124+
INTERNAL_JWT_SECRET: '${INTERNAL_JWT_SECRET}'
124125
PANDASCORE_API_KEY: '${PANDASCORE_API_KEY}'
125126
CORS_ORIGINS: '${CORS_ORIGINS:-https://prostaff.gg,https://www.prostaff.gg,https://api.prostaff.gg,https://status.prostaff.gg,https://docs.prostaff.gg}'
126127
JWT_SECRET_KEY: '${JWT_SECRET_KEY}'
@@ -168,6 +169,7 @@ services:
168169
RAILS_MASTER_KEY: '${RAILS_MASTER_KEY}'
169170
RIOT_API_KEY: '${RIOT_API_KEY}'
170171
RIOT_GATEWAY_URL: '${RIOT_GATEWAY_URL}'
172+
INTERNAL_JWT_SECRET: '${INTERNAL_JWT_SECRET}'
171173
PANDASCORE_API_KEY: '${PANDASCORE_API_KEY}'
172174
JWT_SECRET_KEY: '${JWT_SECRET_KEY}'
173175
SECRET_KEY_BASE: '${SECRET_KEY_BASE}'

0 commit comments

Comments
 (0)