
Reading the documentation, HCL only gives us the configuration for NGINX. Some companies are using Apache and not NGINX. We encourage the move to NGINX, but for now Apache is still okay.
- What we use in this configuration:
Outside URL:ā nomad.domain.nl
Inside URL (Domino): internal.domain.nl - SSL Certificates
a. For Domino for communication between Apache and Domino.
āYou can use MicroCA in the certstore.nsf to create the certificate for internal.domain.nl
b. For external access ( URL to access Nomad )
āYou can use Let’s Encrypt for creating this SSL certificate: nomad.domain.nl - HOST for Nomad
Set the host for Nomad in Domino:
set co Nomad_Web_Host=internal.domain.nl - Apache config
Create /etc/apache2/sites-available/nomad.conf and run Let’s Encrypt’s certbot to create the SSL certificate: ā
ācertbot –apache -d nomad.domain.nl
Edit /etc/apache2/sites-available/nomad-le-ssl.conf to enable WSS config
For my server, I needed to change it to:
<IfModule mod_ssl.c>
<VirtualHost *:443>
ā ServerAdmin remco@angioni.nl
DocumentRoot /var/www/html/nomad
ServerName nomad.domain.nl
ErrorLog logs/nomad-error.log
CustomLog logs/nomad-access.log common
ā SSLProxyEngine on
ā SSLProxyVerify none
ā SSLProxyCheckPeerName off
ā SSLProxyCheckPeerCN off
ā SSLProxyCheckPeerExpire off
ā ProxyPreserveHost On
ā RewriteEngine on
ā ProxyRequests off
RewriteCond %{HTTP_HOST} nomad.domain.nl
RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC]
RewriteRule /(.*) wss://internal.domain.nl:9443/$1 [P,L]
RewriteCond %{HTTP:CONNECTION} ^Upgrade$ [NC]
RewriteRule /(.*) https://internal.domain.nl:9443/$1 [P,L]
RequestHeader set X-Forwarded-Proto "https"
RewriteRule /ws/.* wss://internal.domain.nl:9443%{REQUEST_URI} [P]
ProxyPass "/" "https://internal.domain.nl:9443/"
ProxyPassReverse "/" "https:internal.domain.nl:9443/"
ProxyPass /nrpc-wss/ wss://internal.domain.nl:9443/
ProxyPassReverse /nrpc-wss/ wss://internal.domain.nl:9443/
āāInclude /etc/letsencrypt/options-ssl-apache.conf
ā SSLCertificateFile /etc/letsencrypt/live/nomad.domain.nl/fullchain.pem
ā SSLCertificateKeyFile /etc/letsencrypt/live/nomad.domain.nl/privkey.pem
</VirtualHost>
</IfModule>
Views: 453