Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

NGINX Server Block

This is an example of an NGINX server block that will expose the internal path to a subdomain.

...

For specific NGINX instructions, see: NGINX as a Proxy Server

...

webhooks to: https://yourcasdomain.com/notabene-wh

  • Replace yourcasdomain.com with your actual domain.

  • Replace 10.3.2.1 with the actual master service IP reported in sudo /batm/batm-manage info

  • For specific NGINX instructions, see: NGINX as a Proxy Server

Code Block
server {
    listen       443 ssl;
    server_name notabene.yourcasdomain.com;

    ssl_certificate /etc/letsencrypt/live/yourcasdomain.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/yourcasdomain.com/privkey.pem;

    access_log /var/log/nginx/notabene_access.log;
    error_log /var/log/nginx/notabene_error.log;

    location /notabene-wh {
        proxy_pass https://10.3.2.1:7743/extensions/notabene/webhooks;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
}

If you prefer to implement a subdomain (i.e. Cloudflare), modify location as follows:

Code Block
    location / {
  • Create your CNAME (e.g. “notabene-wh”) pointing to root, and

  • steer the Notabene webhooks to: https://notabene-wh.yourcasdomain.com