I have following code using shiny-server. I want to restrict access of App3 to one specific ip address.
server {
# Instruct this server to listen on port 3838
listen 80;
# Define the location available at the base URL
location / {
#### PRO ONLY ####
# Only up tp 20 connections per Shiny process and at most 3 Shiny processes
# per application. Proactively spawn a new process when our processes reach
#90% capacity.
utilization_scheduler 20 .9 3;
#### END PRO ONLY ####
required_group Group1, Group2, Group3;
# Run this location in 'site_dir' mode, which hosts the entire directory
# tree at '/srv/shiny-server'
site_dir /srv/shiny-server;
# Define where we should put the log files for this location
log_dir /var/log/shiny-server;
# Should we list the contents of a (non-Shiny-App) directory when the user
# visits the corresponding URL?
directory_index on;
location /Apps1 {
required_group Group1, Group2, Group3;
}
location /Apps2 {
required_group Group1, Group2, Group4;
}
location /Apps3 {
required_group Group1, Group2, Group4;
}
}
}
I have following code using shiny-server. I want to restrict access of App3 to one specific ip address.
How should I do that ?