File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 99define ('MINIO_ACCESS_KEY ' , getenv ('MINIO_ACCESS_KEY ' ) ?: null );
1010define ('MINIO_SECRET_KEY ' , getenv ('MINIO_SECRET_KEY ' ) ?: null );
1111
12- define ('GK_MINIO_WEBHOOK_AUTH_TOKEN_PICTURES_PROCESSOR_UPLOADER ' , getenv ('GK_MINIO_WEBHOOK_AUTH_TOKEN_PICTURES_PROCESSOR_UPLOADER ' ) ?: null );
12+ define ('GK_MINIO_WEBHOOK_AUTH_TOKEN_PP_UPLOADER ' , getenv ('GK_MINIO_WEBHOOK_AUTH_TOKEN_PP_UPLOADER ' ) ?: null );
1313define ('GK_PP_TMP_DIR ' , getenv ('GK_PP_TMP_DIR ' ) ?: '/tmp ' );
1414define ('GK_BUCKET_GEOKRETY_AVATARS_CACHE_CONTROL ' , getenv ('GK_BUCKET_GEOKRETY_AVATARS_CACHE_CONTROL ' ) ?: 600 );
1515
2626 * @throws \ImagickException
2727 */
2828function fileUploaded (Base $ f3 ) {
29- if ($ f3 ->get ('HEADERS.Authorization ' ) !== sprintf ('Bearer %s ' , GK_MINIO_WEBHOOK_AUTH_TOKEN_PICTURES_PROCESSOR_UPLOADER )) {
29+ if ($ f3 ->get ('HEADERS.Authorization ' ) !== sprintf ('Bearer %s ' , GK_MINIO_WEBHOOK_AUTH_TOKEN_PP_UPLOADER )) {
3030 http_response_code (400 );
3131 echo 'Missing or wrong authorization header ' ;
3232 $ f3 ->abort ();
You can’t perform that action at this time.
0 commit comments