Help! Docker MISP, NGINX, Port Forwarding Problems
by 328ifun from LinuxQuestions.org on (#6NV3G)
Wondering if someone can help me here, probably easy for someone who has done something similar or is an expert.
I have MISP set up in Docker on Ubuntu 20.04. I want to make it accessible over the internet via a subdomain, something like misp.misptest.com (I have my own domain and DNS set up to the MISP server). This all works; however, I can't get an SSL certificate for MISP directly. I've managed to get it out to the net and accessible via the domain, but I'm having no luck with getting a certificate to work directly.
MISP is accessible via ports 80 and 443, and if you try to change them, it breaks. So, I think I have to use those specifically.
I want to use NGINX on ports 8080 and 8443 on the host (can't use 80 and 443 because the MISP Docker is using them) and set up port forwarding so that MISP can be accessed via these ports on the host. Then, let NGINX handle the SSL stuff and forward to ports 80 and 443. For example, www.misp.misptest.com:8443. I've used Certbot and grabbed certs, and everything is good there, but I'm having a ton of trouble getting it to connect back to MISP with NGINX. I've set up port forwarding on my router: 8080 -> 8080, 8443 -> 8443, and I'm getting an NGINX error "plain text request sent over HTTPS."
I have no idea what's going on or if there is a problem with the NGINX configuration or what, but in theory, it should work.
Any help is greatly appreciated before I pull my hair out.
I have MISP set up in Docker on Ubuntu 20.04. I want to make it accessible over the internet via a subdomain, something like misp.misptest.com (I have my own domain and DNS set up to the MISP server). This all works; however, I can't get an SSL certificate for MISP directly. I've managed to get it out to the net and accessible via the domain, but I'm having no luck with getting a certificate to work directly.
MISP is accessible via ports 80 and 443, and if you try to change them, it breaks. So, I think I have to use those specifically.
I want to use NGINX on ports 8080 and 8443 on the host (can't use 80 and 443 because the MISP Docker is using them) and set up port forwarding so that MISP can be accessed via these ports on the host. Then, let NGINX handle the SSL stuff and forward to ports 80 and 443. For example, www.misp.misptest.com:8443. I've used Certbot and grabbed certs, and everything is good there, but I'm having a ton of trouble getting it to connect back to MISP with NGINX. I've set up port forwarding on my router: 8080 -> 8080, 8443 -> 8443, and I'm getting an NGINX error "plain text request sent over HTTPS."
I have no idea what's going on or if there is a problem with the NGINX configuration or what, but in theory, it should work.
Any help is greatly appreciated before I pull my hair out.