Graylog Docker & Swag Docker (with NGINX Reverse-Proxy) [fixed]

Hello everyone,

I set GRAYLOG on Docker and it’s working fine on the device using HTTP on port 9000.

Unfortunately, I’m unable to make it work with the NGINX Reverse-Proxy of the SWAG container.

I was wondering if anyone is using this setup.
Tried many NGINX configurations without success (mostly not responding or blank page).

Thanks YOU

Found it !

NGINX CONF FILE (xxx.subdomain.conf)

server {
listen 443 ssl;
server_name .*;
# No google, no no no
add_header X-Robots-Tag “noindex, nofollow, nosnippet, noarchive”;
include /config/nginx/ssl.conf;
client_max_body_size 0;

location / {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_app <local_machine_name_full>;
set $upstream_port 9000;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;

    proxy_set_header Host $http_host;
    proxy_set_header X-Forwarded-Host $host;
    proxy_set_header X-Forwarded-Server $host;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Graylog-Server-URL https://<exposed_https_address_with_subdomain>/;
}

GRAYLOG docker-compose

where;

{GRAYLOG_HTTP_EXTERNAL_URI} = http://yourservename:9000/ {GRAYLOG_HTTP_PUBLISH_URI} = http://yourservename:9000/
yep, both the same form me… it works so, not sure

environment:
- GRAYLOG_PASSWORD_SECRET={GRAYLOG_PASSWORD_SECRET} - GRAYLOG_ROOT_PASSWORD_SHA2={GRAYLOG_ROOT_PASSWORD_SHA2}
- GRAYLOG_HTTP_EXTERNAL_URI={GRAYLOG_HTTP_EXTERNAL_URI} - GRAYLOG_HTTP_PUBLISH_URI={GRAYLOG_HTTP_PUBLISH_URI}
- GRAYLOG_ELASTICSEARCH_INDEX_PREFIX={GRAYLOG_ELASTICSEARCH_INDEX_PREFIX} - TRANSPORT_EMAIL_ENABLED={GRAYLOG_TRANSPORT_EMAIL_ENABLED}
- TRANSPORT_EMAIL_USE_AUTH={GRAYLOG_TRANSPORT_EMAIL_USE_AUTH} - TRANSPORT_EMAIL_HOSTNAME={GRAYLOG_TRANSPORT_EMAIL_HOSTNAME}
- TRANSPORT_EMAIL_PORT={GRAYLOG_TRANSPORT_EMAIL_PORT} - TRANSPORT_EMAIL_AUTH_USERNAME={GRAYLOG_TRANSPORT_EMAIL_AUTH_USERNAME}
- TRANSPORT_EMAIL_AUTH_PASSWORD={GRAYLOG_TRANSPORT_EMAIL_AUTH_PASSWORD} - TRANSPORT_EMAIL_USE_TLS={GRAYLOG_TRANSPORT_EMAIL_USE_TLS}
- TRANSPORT_EMAIL_USE_SSL={GRAYLOG_TRANSPORT_EMAIL_USE_SSL} - TRANSPORT_EMAIL_SUBJECT_PREFIX={GRAYLOG_TRANSPORT_EMAIL_SUBJECT_PREFIX}
- TRANSPORT_EMAIL_FROM_EMAIL={GRAYLOG_TRANSPORT_EMAIL_FROM_EMAIL} - TRANSPORT_EMAIL_TRANSPORT_EMAIL_WEB_INTERFACE_URL={GRAYLOG_TRANSPORT_EMAIL_TRANSPORT_EMAIL_WEB_INTERFACE_URL}
- TZ=${GLB_TZ_ZRH}

Hope this will help someone.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.