refactor(config): drop local.4nkweb.com (http) usage; enforce https lecoffreio.4nkweb.com\n\n- Remove CORS default for local.4nkweb.com:3000\n- Default APP_HOST to https://lecoffreio.4nkweb.com\n- Remove obsolete nginx conf
Some checks failed
Build and Push to Registry / build-and-push (push) Has been cancelled
Some checks failed
Build and Push to Registry / build-and-push (push) Has been cancelled
This commit is contained in:
parent
0069d53946
commit
f79b3f8f26
@ -1,7 +0,0 @@
|
||||
server {
|
||||
listen 3000;
|
||||
server_name local.4nkweb.com;
|
||||
|
||||
# Redirige vers le front final en conservant chemin + query
|
||||
return 301 https://dev3.4nkweb.com/idnot/callback$is_args$args;
|
||||
}
|
@ -928,3 +928,18 @@ Full error response: {
|
||||
statusCode: 200
|
||||
}
|
||||
}
|
||||
❌ [ERROR] 2025-09-24T16:26:14.020Z HTTP GET /login - 404
|
||||
────────────────────────────────────────────────────────────────────────────────
|
||||
{
|
||||
duration: 0,
|
||||
request: {
|
||||
ip: '::ffff:45.135.193.254',
|
||||
method: 'GET',
|
||||
url: '/login',
|
||||
userAgent: 'Go-http-client/1.1'
|
||||
},
|
||||
requestId: 'req_1758731174020_yqpyn3ptj',
|
||||
response: {
|
||||
statusCode: 404
|
||||
}
|
||||
}
|
||||
|
@ -5,7 +5,7 @@ dotenv.config();
|
||||
export const config = {
|
||||
port: process.env.PORT || 8080,
|
||||
defaultStorage: process.env.DEFAULT_STORAGE || 'https://dev3.4nkweb.com/storage',
|
||||
appHost: process.env.APP_HOST || 'http://localhost:3000',
|
||||
appHost: process.env.APP_HOST || 'https://localhost:3000',
|
||||
|
||||
// Déterminer dynamiquement l'origine CORS à partir d'APP_HOST si possible
|
||||
cors: (() => {
|
||||
@ -39,8 +39,7 @@ export const config = {
|
||||
.filter((r): r is RegExp => !!r);
|
||||
|
||||
const defaultRegexList: RegExp[] = [
|
||||
/^https:\/\/.*\.4nkweb\.com$/,
|
||||
/^http:\/\/local\.4nkweb\.com:3000$/
|
||||
/^https:\/\/.*\.4nkweb\.com$/
|
||||
];
|
||||
|
||||
const regexList = regexFromEnv.length > 0 ? regexFromEnv : defaultRegexList;
|
||||
|
@ -1,5 +1,5 @@
|
||||
export const stripeConfig = {
|
||||
STRIPE_SECRET_KEY: process.env.STRIPE_SECRET_KEY,
|
||||
STRIPE_WEBHOOK_SECRET: process.env.STRIPE_WEBHOOK_SECRET,
|
||||
APP_HOST: process.env.APP_HOST || 'http://localhost:3000',
|
||||
APP_HOST: process.env.APP_HOST || 'https://lecoffreio.4nkweb.com',
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user