Topic: Issue with Netdata on subdomain
Hi everyone,
I'm trying to move all the sub applications off into their respective subdomains.
I have been successful in moving roundcube and iredadmin.
However, I'm running into some problems with Netdata.
All requests to static assets are returning a html page with the following message:
You must enable JavaScript in order to use Netdata! You can do this in your browser settings.
While the homepage returns a dark grey background with the following message:
netdata Real-time performance monitoring, done right!
I'm able to curl the static assets locally:
curl http://127.0.0.1:19999/api/v1/charts?_=idThis returns json as expected. However the following returns html (as described above)
curl -u user:pwd https://netdata.domain.co/api/v1/charts?_=idThere are no errors as far as I can see, except MIME errors in the browser, because it was expecting a certain type and was returned html.
Has anyone moved netdata into its own subdomain? I think there's a simple nginx config change I'm missing.
My netdata-ssl. conf file:
# HTTPS
server {
    listen 443 ssl;
    listen [::]:443 ssl;
    # server name
    server_name netdata.domain.co;
    # web root
    root    /opt/netdata/netdata-web-files;
    index index.php index.html;
    # logs
    access_log  /var/log/nginx/netdata.access.log;
    error_log  /var/log/nginx/netdata.error.log;
    # includes
    include /etc/nginx/templates/misc.tmpl;
    include /etc/nginx/templates/netdata-ssl.tmpl;
    include /etc/nginx/templates/netdata-subdomain.tmpl;
    include /etc/nginx/templates/php-catchall.tmpl;
    include /etc/nginx/templates/stub_status.tmpl;
}==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): v1.2
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: CentOS7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.