New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nginx configuration #3984
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, I encountered an issue while configuring Nginx for Shiny. I referred to the instructions provided in the "Running Shiny Server with a Proxy" article at https://support.posit.co/hc/en-us/articles/213733868 to configure Nginx for Shiny, but I ran into a problem with my Nginx configuration.
user sldai;
worker_processes auto;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
# Security headers
server_tokens off;
#add_header Content-Security-Policy "default-src 'self';";
add_header X-Content-Type-Options nosniff;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
sendfile on;
keepalive_timeout 65;
gzip on;
gzip_min_length 1k;
gzip_buffers 4 16k;
gzip_types text/plain application/x-javascript text/css application/xml;
gzip_comp_level 2;
gzip_vary on;
}
However, both the Nginx and Shiny logs do not show any error messages,the console displays the following error:
I have spent a day without finding the cause of this problem and hope to get your help!
[root@localhost nginx]# shiny-server --version
Shiny Server v1.5.21.1012
[root@localhost nginx]# nginx -V
nginx version: nginx/1.24.0
The text was updated successfully, but these errors were encountered: