Skip to content

make rama-cli squid-config compatible #128

@GlenDC

Description

@GlenDC

For some use cases or users a config is good enough. Especially if we allow the custom logic to also be controlled by the same config file this can be a very powerful concept.

For the v0.2 case might already be cool if the following config file could work:

acl SSL_ports port 443

acl Safe_ports port 80		# http
acl Safe_ports port 443		# https

acl CONNECT method CONNECT

http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports

http_port 8080

This would also make the glendc/rama:latest docker image to be useful out of the box for plenty of use cases.

The reference can be found here: https://www.squid-cache.org/Doc/config/

For the one picking this up, it's a nice opportunity to get your hands dirty with something like https://docs.rs/winnow/latest/winnow/ if you haven't used it already.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions