LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Traccar - Squid Proxy (https://www.linuxquestions.org/questions/linux-software-2/traccar-squid-proxy-4175735798/)

kzo81 04-08-2024 02:08 AM

Traccar - Squid Proxy
 
Hi,

I created a Squid Proxy server, with this configuration:
Code:

# OpenStreetMap
visible_hostname osmproxy.lab.lan
# port
http_port 443 act-as-origin
# parent cache
cache_peer tile.openstreetmap.org parent 443 0 no-query no-digest originserver name=osmTiles forceddomain=tile.openstreetmap.org

# lan segment
acl lab src 192.168.50.0/24
http_access allow lab
http_access deny all

# memory configuration
cache_mem 1024 MB
maximum_object_size_in_memory 512 KB
cache_dir aufs /var/spool/squid 1024 16 256
refresh_pattern -i \.(gif|png|jpg|jpeg|ico)$ 3600 90% 302400

# log time format
logformat combined %>a %[ui %[un [%tl] "%rm %ru HTTP/%rv" %>Hs %<st "%{Referer}>h" "%{User-Agent}>h" %Ss:%Sh
logformat custom %tl.%03tu %>a %Ss/%03>Hs %<st %rm %ru %[un %Sh/%<a %mt
access_log daemon:/var/log/squid/access.log combined

And when I insert this to the Traccar's custom map URL, it doesnt pull the tiles anymore:
Code:

192.168.50.101:3128 https://a.tile.openstreetmap.org/{z}/{x}/{y}.png
This test works properly
Code:

curl -I 192.168.50.101:3128 https://a.tile.openstreetmap.org/9/286/187.png
Do you have any idea what am I doing wrong?

Thanks Guys!


All times are GMT -5. The time now is 03:03 PM.