You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am kinda new to ngnix, and trying to run the latest (ghcr.io/nginx/nginx-s3-gateway/nginx-oss-s3-gateway:latest) container with the below env settings:
/docker-entrypoint.sh: Configuration complete; ready for start up
2025/06/26 14:09:49 [emerg] 1#1: invalid number of arguments in "js_var" directive in /etc/nginx/conf.d/default.conf:25
nginx: [emerg] invalid number of arguments in "js_var" directive in /etc/nginx/conf.d/default.conf:25
I also tried to bash into the container on startup to see if I can see whats /etc/nginx/conf.d/default.conf:25, but the line is commented out, and I dont see any js_var directives in this file.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey all,
I am kinda new to ngnix, and trying to run the latest (ghcr.io/nginx/nginx-s3-gateway/nginx-oss-s3-gateway:latest) container with the below env settings:
S3_BUCKET_NAME=axxxxxx
AWS_ACCESS_KEY_ID=xxxx
AWS_SECRET_ACCESS_KEY="sdsdsdsds"
S3_SERVER=s3.us-east-1.amazonaws.com
S3_SERVER_PORT=443
S3_SERVER_PROTO=https
S3_REGION=us-east-1
S3_STYLE=virtual-v2
S3_SERVICE=s3
DEBUG=true
AWS_SIGS_VERSION=4
ALLOW_DIRECTORY_LIST=true
Error message I get n startup.
I also tried to bash into the container on startup to see if I can see whats /etc/nginx/conf.d/default.conf:25, but the line is commented out, and I dont see any js_var directives in this file.
Please help if any of you have seen this before.
Beta Was this translation helpful? Give feedback.
All reactions