

Proceed and issue certificates by executing: sudo certbot -apache Sudo apt update sudo apt install certbot python3-certbot-apache Sudo dnf install certbot python3-certbot-apache mod_ssl Install the required package: #On RHEL 8/CentOS/Rocky Linux 8/Fedora We will use Let’s Encrypt to issue free signed certificates for our FQDN. With the reverse proxy set up, proceed and secure the site. Secure Plex and Kodi Media Server using Let’s Encrypt SSL Sudo firewall-cmd -add-service=http -permanentĪt this point, you should be able to access the Kodi/Plex web interface via HTTP using the URL for Plex and for Kodi. sudo setenforce 0Īllow HTTP through the firewall. On Rhel-based systems, set SELinux disabled. On Debian/Ubuntu, enable the created site and several modules: sudo a2enmod proxy_http Remember to replace the ServerName and the error log path on Rhel-based systems to /httpd. ProxyPassReverse wss://localhost:32400/:/websockets/notificationsĮrrorLog /var/log/apache2/kodiserver_error.logĬustomLog /var/log/apache2/kodiserver_access.log "vhost_combined"


ProxyPass wss://localhost:32400/:/websockets/notifications ProxyPass / ProxyPassReverse / #Websocket proxy Once installed, create a virtual hosts file for Plex/Kodi.įor Plex, the file will have the content below For this guide we will use the Apache web server that can be installed using the command: #On Debian/Ubuntu To be able to secure Plex and Kodi Media Server using Let’s Encrypt SSL we need to have a reverse proxy set up. Now proceed and secure Plex and Kodi Media Server using Let’s Encrypt SSL with the steps below Install and Configure Apache Web server (Reverse Proxy) Now you will have the Kodi web interface running on port 8080. Under Settings->Services-> Control, allow HTTP on port 8080 as below. Kodi can as well be installed using the aid from the below guide:įor Kodi, you need to enable the web interface by installing the web interface add-on under the add-ons tab as below.

The Plex Media Server can be installed using the below guides:
