Skip to main content

SSL

Enable HTTPS Service

If you need to enable HTTPS service for this system, you can do so with the following configuration:
  • Obtain the certificate files and place them in the volumes/webapp/ssl directory, with the filenames server.crt and server.key.
  • Place the custom Nginx configuration file in the volumes/webapp/conf directory, with the filename nginx.conf, configured as follows
  • Specify the nginx configuration file: change command: ['nginx', '-g', 'daemon off;'] to command: ['nginx', '-g', 'daemon off;', '-c', '/webapp/conf/nginx.conf']
  • Modify the ports configuration to open port 443: - "443:443"
  • Change API_BASE_URL in the .env file to //your.domain.
  • Change WEBAPP_PORT in the .env file to 443. If you want to enable both (80/443), you can remove this variable.
Restart the service to apply the changes. For more technical details, please refer to Enable HTTPS - [ocap wiki]