访问日志闪亮的服务器与IP地址

时间:2016-08-02 08:05:44

标签: r server shiny

我曾在云中托管使用​​R和Shiny构建的应用。云基础架构如下:

Centos 7.2.1511, R - 3.3.0, shiny-server - 1.4.4.802 and mysql.

闪亮服务器是open source version

闪亮的服务器文档页面表明我可以获取访问日志(not indicated as 'pro only'),包括用户的IP地址。我在shiny-server.conf文件中添加了以下access_log代码:

access_log /var/log/shiny-server/access.log default;

我当前的shiny-server.conf文件如下所示:

#Instruct shiny server to run applications as the user 'shiny'
run_as shiny;
access_log /var/log/shiny-server/access.log default;

#Define a server that listens on port 3838

server{
  listen: 3838;

#Define a location at the base url

location / {

    site_dir /srv/shiny-server;
    log_dir /var/log/shiny-server;
    directory_index on;
  }

}

我停止了闪亮的服务器并再次启动它。但我的日志仍然如下命名:

-rw-r----- 1 shiny shiny   725 Jul 26 09:37 testapp-shiny-20160726-093546-58006.log

我期待带有IP名称的日志。当我打开日志文件时,以下是我得到的详细信息:

su: ignore --preserve-environment, it's mutually exclusive to --login.
Listening on http://127.0.0.1:36182

如何获取用户的IP地址?或者仅适用于Pro版本。尽管文档清楚地指出了为pro启用的部分,但我确定未指定访问日志。

0 个答案:

没有答案