我在通过vpn(openvpn)运行自托管(arch server)nginx/shiny应用程序时遇到了问题。它的一部分显示在其他机器上,但传单/数据表对象不显示。
在本地网络中运行良好。闪亮的网页本身有一个http链接,但显然传单(可能也dt)使用了https。
完全奇怪的是,对于一个在win10下使用openvpn的同事来说,它是有效的。
有人能指点我修一下吗?
操作系统客户端:
ubuntu 18.04版,
OpenVPN 2.4.4-2ubuntu1;
操作系统服务器:
Arch Linux系统
nginx 1.14.0-1版本
R服务器:
R版本3.5.1,x86_64-pc-linux-gnu
闪亮的1.1.0
传单2.0.1
nginx.conf格式
user html;
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen 80;
server_name localhost;
location / {
proxy_pass http://localhost:3838;
proxy_redirect http://localhost:3838/ $scheme://$host/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_read_timeout 20d;
proxy_buffering off;
}
shiny-server.conf文件:
# Instruct Shiny Server to run applications as the user "shiny"
run_as xyz;
# Define a server that listens on port 3838
server {
listen 3838;
# Define a location at the base URL
location / {
# Host the directory of Shiny Apps stored in this directory
site_dir /home/xyz/app;
# Log all Shiny output to files in this directory
log_dir /var/log/shiny-server;
# When a user visits the base URL rather than a particular application,
# an index of the applications available in this directory will be shown.
directory_index on;
}
}