View Single Post
Old 08-22-2022, 04:27 AM   #1874
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
Posts: 726
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
@machuni
Do you use COPS on your Pi with docker?
COPS/NGINX is accessible on port 80 or port 443 with SSL.

For simplicity you can open/portforward port 80 on your router to the internal IP adres of your Pi. Then from the www you can access COPS with http://<LAN-IP>/cops

However this is NOT SAFE. What can you do?
1 - at least restrict access to COPS with a password. The easiest way is to use a setting in config_local.php. For example:
$config['cops_basic_authentication'] = array("username" => "cops", "password" => "cops");
2 - "Security bij obscurity": portforward (for example) external port 12345 to internal port 80. You then can access COPS by http://<WAN-IP>:12345/cops
3 - get a (free) domain name and use let's encrypt to securely access COPS by https//domainname/cops
mariosipad is offline   Reply With Quote