@pfaffman thank you for the pointers.
I fixed it Here is solution in case someone needs it.
-
./launcher enter app
from /var/discourse folder - Go to '/etc/nginx/ folder and create file ‘whitelist-ip.conf’
- add below lines in ‘whitelist-ip.conf’ file
allow 192.168.1.1;
deny all; - open
/etc/nginx/conf.d/discourse.conf
- go to line no 37 see below section, it is for port 443
server {
include /etc/nginx/whitelist-ip.conf;
} - add line ‘include /etc/nginx/whitelist-ip.conf;’
- Test NginX configuration by running command ‘nginx -t’
- run ‘service nginx reload’
Try now, it will show not found page. no page related to discourse. from whiteliet ip address it will show normal forum.