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 1111
1212define ('GK_MINIO_PICTURES_PROCESSOR_MINIO_ACCESS_KEY ' , getenv ('GK_MINIO_PICTURES_PROCESSOR_MINIO_ACCESS_KEY ' ) ?: null );
1313define ('GK_MINIO_PICTURES_PROCESSOR_MINIO_SECRET_KEY ' , getenv ('GK_MINIO_PICTURES_PROCESSOR_MINIO_SECRET_KEY ' ) ?: null );
14- define ('GK_MINIO_WEBHOOK_AUTH_TOKEN_PICTURES_PROCESSOR_DOWNLOADER ' , getenv ('GK_MINIO_WEBHOOK_AUTH_TOKEN_PICTURES_PROCESSOR_DOWNLOADER ' ) ?: null );
14+ define ('GK_MINIO_WEBHOOK_AUTH_TOKEN_PP_DOWNLOADER ' , getenv ('GK_MINIO_WEBHOOK_AUTH_TOKEN_PP_DOWNLOADER ' ) ?: null );
1515define ('GK_AUTH_TOKEN_DROP_S3_FILE_UPLOAD_REQUEST ' , getenv ('GK_AUTH_TOKEN_DROP_S3_FILE_UPLOAD_REQUEST ' ) ?: '' );
1616
1717define ('GK_BUCKET_NAME_GEOKRETY_AVATARS ' , getenv ('GK_BUCKET_NAME_GEOKRETY_AVATARS ' ) ?: 'gk-avatars ' );
5050function fileUploaded (Base $ f3 ) {
5151 global $ hasThumbnails ;
5252
53- if ($ f3 ->get ('HEADERS.Authorization ' ) !== sprintf ('Bearer %s ' , GK_MINIO_WEBHOOK_AUTH_TOKEN_PICTURES_PROCESSOR_DOWNLOADER )) {
53+ if ($ f3 ->get ('HEADERS.Authorization ' ) !== sprintf ('Bearer %s ' , GK_MINIO_WEBHOOK_AUTH_TOKEN_PP_DOWNLOADER )) {
5454 http_response_code (400 );
5555 echo 'Missing or wrong authorization header ' ;
5656 $ f3 ->abort ();
You can’t perform that action at this time.
0 commit comments