mirror of
https://github.com/HangarMC/Hangar.git
synced 2025-01-24 14:24:47 +08:00
remove unused backend auth host and rename lazy auth host
Signed-off-by: MiniDigger <admin@benndorf.dev>
This commit is contained in:
parent
7c20548ef4
commit
90a71b6c07
2
.github/workflows/deploy.yml
vendored
2
.github/workflows/deploy.yml
vendored
@ -64,7 +64,7 @@ jobs:
|
||||
CI: true
|
||||
# keep these in sync with compose!
|
||||
proxyHost: "http://hangar_new_backend:8080"
|
||||
authHost: "http://hangar_new_auth:8000"
|
||||
authHost: "https://hangar-auth.benndorf.dev"
|
||||
host: "0.0.0.0"
|
||||
PUBLIC_HOST: "https://hangar.benndorf.dev"
|
||||
run: (cd frontend && yarn build)
|
||||
|
3
.github/workflows/frontend_build.yml
vendored
3
.github/workflows/frontend_build.yml
vendored
@ -48,8 +48,7 @@ jobs:
|
||||
CI: true
|
||||
# keep these in sync with compose!
|
||||
proxyHost: "http://hangar_new_backend:8080"
|
||||
authHost: "http://hangar_new_auth:8000"
|
||||
lazyAuthHost: "https://hangar-auth.benndorf.dev"
|
||||
authHost: "https://hangar-auth.benndorf.dev"
|
||||
host: "0.0.0.0"
|
||||
PUBLIC_HOST: "https://hangar.benndorf.dev"
|
||||
run: (cd frontend && yarn build)
|
||||
|
@ -11,8 +11,7 @@ services:
|
||||
environment:
|
||||
# keep these in sync with gh-action!
|
||||
proxyHost: "http://hangar_new_backend:8080"
|
||||
authHost: "http://hangar_new_auth:8000"
|
||||
lazyAuthHost: "https://hangar-auth.benndorf.dev"
|
||||
authHost: "https://hangar-auth.benndorf.dev"
|
||||
host: "0.0.0.0"
|
||||
PUBLIC_HOST: "https://hangar.benndorf.dev"
|
||||
stdin_open: true
|
||||
|
@ -18,7 +18,6 @@ require('dotenv').config();
|
||||
const proxyHost = process.env.proxyHost || 'http://localhost:8080';
|
||||
const oauthHost = process.env.oauthHost || 'http://localhost:4444';
|
||||
const authHost = process.env.authHost || 'http://localhost:8000';
|
||||
const lazyAuthHost = process.env.lazyAuthHost || 'http://localhost:8000';
|
||||
const publicHost = process.env.PUBLIC_HOST || 'http://localhost:3000';
|
||||
const host = process.env.host || 'localhost';
|
||||
const nodeEnv = process.env.NODE_ENV;
|
||||
@ -61,7 +60,6 @@ export default {
|
||||
proxyHost,
|
||||
oauthHost,
|
||||
authHost,
|
||||
lazyAuthHost,
|
||||
publicHost,
|
||||
host,
|
||||
nodeEnv,
|
||||
@ -135,8 +133,8 @@ export default {
|
||||
proxyHost + '/*/sitemap.xml',
|
||||
proxyHost + '/statusz',
|
||||
// auth
|
||||
lazyAuthHost + '/avatar',
|
||||
lazyAuthHost + '/oauth/logout',
|
||||
authHost + '/avatar',
|
||||
authHost + '/oauth/logout',
|
||||
oauthHost + '/oauth2',
|
||||
],
|
||||
|
||||
@ -202,7 +200,7 @@ export default {
|
||||
"'self'",
|
||||
'https://www.google-analytics.com',
|
||||
'https://www.gravatar.com',
|
||||
lazyAuthHost,
|
||||
authHost,
|
||||
'data: papermc.io paper.readthedocs.io',
|
||||
'https:', // ppl can use images in descriptions, we would need an image proxy or smth
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user