How to allow and deny IPs and subnets

Hi Folks,

I’m still a bit new to Anthias (and docker for that matter). Is there a simple way to allow and/or deny specific IPs and subnets from accessing port 80 on a Raspberry Pi running Anthias? I prefer not to install ufw, if it can be avoided.

I tried by adding the following directives into the default file for nginx under the anthias-nginx container, but that didn’t seem to help.

server {
        listen 80 default_server;
        listen [::]:80 default_server;

        #Allow access from a specific IP
        allow 123.45.678.90;

        # Deny access from all other IPs
        deny all;
...

Appreciate any tips. Thanks!

-sul.