Graylog 3.1 with nginx https - api browser not work

Hi.

I have graylog servier in version 3.1.
i used nginx to make the browser secure with https.
everything work well, but when i go to the api browser i get nothing :frowning:

this my nginx conf :
server
{
listen 443 ssl http2;
server_name x.com
ssl on;
ssl_certificate /etc/letsencrypt/live/sophsiem.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/sophsiem.com/privkey.pem;
ssl_session_timeout 5m;
ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
ssl_protocols TLSv1.2;
ssl_prefer_server_ciphers on;
access_log /var/log/nginx/graylog.access.log;
error_log /var/log/nginx/graylog.error.log;
location / {
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://$server_name;
proxy_pass http://127.0.0.1:9000;
}
}

this the config of the graylog :
http_bind_address = 127.0.0.1:9000

in the browser the link of the api get me to http://127.0.0.1/api… , i also tried to change the begin to my site/api… , but get white page.

i tried everything, including every guide i saw in the internet.

someone can help me? thanks!

You may want to try setting the http_external_uri option within the graylog server.conf file.

https://docs.graylog.org/en/3.1/pages/configuration/server.conf.html#web-rest-api

Hi. when i configure this setting, after i restarting the graylog-server service, anything didn’t work.
maybe i need chage more things?

what i need to write there?

i write this : http_external_uri = https://mydomain.com

take your first configuration and type in manually sophsiem.com/api/api-browser

for which line? i need to configured that?

that should be the direct input to your browsers URL bar.