# vim: :filetype=apache ########################################################################### # # Read **ALL** the comments in this file, don't blindly use it! # # Be sure to replace 'YOUROWN.eddn.edcd.io' with your hostname. # # Also edit the DocumentRoot and related statements if you use a # different path. # # Ensure the CustomLog directory actually exists, else apache will not # start, or die on a restart/reload. # ########################################################################### ## YOUROWN.eddn.edcd.io ServerName YOUROWN.eddn.edcd.io DocumentRoot /home/eddn/.local/share/eddn/dev ErrorLog ${APACHE_LOG_DIR}/YOUROWN.eddn.edcd.io/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog ${APACHE_LOG_DIR}/YOUROWN.eddn.edcd.io/access.log combined # Comment these out when initially requesting a LetsEncrypt cert Redirect / https://YOUROWN.eddn.edcd.io/ RedirectMatch "/^(.*)$" "https://YOUROWN.eddn.edcd.io/$1" # LetsEncrypt Alias /.well-known/ /var/www/letsencrypt/.well-known/ Options -Indexes Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec AllowOverride All Require all granted Require all denied Include partials/default-directory.conf # This will need to be commented out/disabled for initial LetsEncrypt # certificate request, as you don't have the certificate yet! SSLEngine On SSLCertificateFile /etc/letsencrypt/live/YOUROWN.eddn.edcd.io/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/YOUROWN.eddn.edcd.io/privkey.pem ServerName YOUROWN.eddn.edcd.io DocumentRoot /home/eddn/.local/share/eddn/YOUROWN/monitor ErrorLog ${APACHE_LOG_DIR}/YOUROWN.eddn.edcd.io/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog ${APACHE_LOG_DIR}/YOUROWN.eddn.edcd.io/access.log combined # LetsEncrypt Alias /.well-known/ /var/www/letsencrypt/.well-known/ Options -Indexes Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec AllowOverride All Require all granted Require all denied # Serve the schemas Alias /schemas/ /home/eddn/.local/share/eddn/YOUROWN/schemas/ # netdata (performance info) Redirect /netdata /netdata/ SetOutputFilter DEFLATE Require all granted Require all denied SSLProxyEngine On SSLProxyVerify none ProxyPreserveHost On # Yes, plain http for this. ProxyPass "/netdata/" "http://127.0.0.1:19999/" # This is for the Gateway public URLs # This will need to be commented out/disabled for initial LetsEncrypt # certificate request, as you don't have the certificate yet! # You also need to ensure `Listen 4430` is in ports.conf SSLEngine On SSLCertificateFile /etc/letsencrypt/live/YOUROWN.eddn.edcd.io/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/YOUROWN.eddn.edcd.io/privkey.pem ServerName YOUROWN.eddn.edcd.io DocumentRoot /home/eddn/.local/share/eddn/YOUROWN/monitor ErrorLog ${APACHE_LOG_DIR}/YOUROWN.eddn.edcd.io/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog ${APACHE_LOG_DIR}/YOUROWN.eddn.edcd.io/access.log combined # LetsEncrypt Alias /.well-known/ /var/www/letsencrypt/.well-known/ Options -Indexes Require all granted Require all denied SSLProxyEngine On SSLProxyVerify none ProxyPreserveHost On ProxyRequests Off # Must be https, not http, as the Gateway process is # expecting only https requests. ProxyPass "/" "https://127.0.0.1:8081/" ProxyPassReverse "/" "https://127.0.0.1:8081/"