diag2: OBS logs to container /logs, expose via temporary /diag/
Browse files- Dockerfile +1 -1
- nginx.conf +7 -0
Dockerfile
CHANGED
|
@@ -23,7 +23,7 @@ ENV RUSTFS_ADDRESS=0.0.0.0:9000 \
|
|
| 23 |
RUSTFS_CONSOLE_ENABLE=true \
|
| 24 |
RUSTFS_VOLUMES=/data \
|
| 25 |
RUSTFS_CONSOLE_CORS_ALLOWED_ORIGINS="*" \
|
| 26 |
-
RUSTFS_OBS_LOG_DIRECTORY=/
|
| 27 |
RUSTFS_OBS_LOGGER_LEVEL=warn
|
| 28 |
|
| 29 |
EXPOSE 8080
|
|
|
|
| 23 |
RUSTFS_CONSOLE_ENABLE=true \
|
| 24 |
RUSTFS_VOLUMES=/data \
|
| 25 |
RUSTFS_CONSOLE_CORS_ALLOWED_ORIGINS="*" \
|
| 26 |
+
RUSTFS_OBS_LOG_DIRECTORY=/logs \
|
| 27 |
RUSTFS_OBS_LOGGER_LEVEL=warn
|
| 28 |
|
| 29 |
EXPOSE 8080
|
nginx.conf
CHANGED
|
@@ -32,6 +32,13 @@ http {
|
|
| 32 |
proxy_pass http://127.0.0.1:9001;
|
| 33 |
}
|
| 34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
# S3 API on everything else
|
| 36 |
location / {
|
| 37 |
proxy_pass http://127.0.0.1:9000;
|
|
|
|
| 32 |
proxy_pass http://127.0.0.1:9001;
|
| 33 |
}
|
| 34 |
|
| 35 |
+
# TEMPORARY DIAGNOSTIC (remove after UploadPart fix): read RustFS OBS logs
|
| 36 |
+
location /diag/ {
|
| 37 |
+
alias /logs/;
|
| 38 |
+
autoindex on;
|
| 39 |
+
access_log off;
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
# S3 API on everything else
|
| 43 |
location / {
|
| 44 |
proxy_pass http://127.0.0.1:9000;
|