Welcome! Log In Create A New Profile

Advanced

Nginx configuration of several subdomains on several microservers

Posted by rifain 
Nginx configuration of several subdomains on several microservers
June 01, 2023 11:02AM
hello,

i have a GPU Server and several microservers

GPU Server : https://hub.domain.tld https://database.domain.tld https://dashboard.domain.tld

Microserver : https://user.domain.tld/vscode https://user.domain.tld/questdb https://user.domain.tld/grafana

Docker compose : on microserver: code-server, questDB, Grafana
Connection to the WebApps is established with ip address and port configuration 8080, 9000, 3000 respectively.

connection on https://user.domain.tld/vscode is established as expected.

Issue:
connection on https://user.domain.tld/questdb is established but the page is not loaded completely
connection on https://user.domain.tld/grafana is not established with 404 Not Found error page.

I really do not know where the issue comes from? Nginx configuration or Docker compose yaml file

thank you for your help


attached the network configuration and the nginx config file.
Attachments:
open | download - forum_nginx_config.txt (9.4 KB)
open | download - network-design (3).png (136.7 KB)
Re: Nginx configuration of several subdomains on several microservers
June 01, 2023 06:11PM
the grafana issue comes from the docker compose file, solved with a custom.ini file so that the grafana.ini file is updated.

#grafana/config/custom.ini

[server]

# The full public facing url
root_url = %(protocol)s://%(domain)s:%(http_port)s/grafana/

# Serve Grafana from subpath specified in `root_url` setting. By default it is set to `false` for compatibility reasons.
serve_from_sub_path = true

the docker-compose file is updated with

#docker-compose.yaml

volumes:

- ./grafana/config/custom.ini:/etc/grafana/grafana.ini



Edited 1 time(s). Last edit at 06/01/2023 06:12PM by rifain.
Re: Nginx configuration of several subdomains on several microservers
June 03, 2023 06:41AM
Concerning the questdb issue, i need some rewriting rules in the nginx configuration file, because some links are broken when accessing https://user.domain.tld/questdb .

Any idea?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 68
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready