阿宅的学习工作日记 阿宅的学习工作日记
首页
  • 生信相关

    • 生信学习
  • 编程相关

    • R语言笔记
    • python笔记
  • linux拾遗
  • 云筏评测
  • 网站搭建
  • 读书笔记
  • 实用技巧
  • 友情链接
  • vuepress相关
  • 分类
  • 标签
  • 归档

Ivis Tang

阿宅本宅
首页
  • 生信相关

    • 生信学习
  • 编程相关

    • R语言笔记
    • python笔记
  • linux拾遗
  • 云筏评测
  • 网站搭建
  • 读书笔记
  • 实用技巧
  • 友情链接
  • vuepress相关
  • 分类
  • 标签
  • 归档
  • vuepress使用iframe组件嵌入bilibili视频
  • 使用cf的worker功能实现cors反代
  • 宝塔配置gitea钩子
  • Nginx反向代理rstudio server
    • 使用nginx反向代理rstudio server的配置文件
  • 网站建设
ivistang
2021-05-04

Nginx反向代理rstudio server

# 使用nginx反向代理rstudio server的配置文件

    location / {
      proxy_pass http://localhost:8787;
      proxy_redirect http://localhost:8787/ $scheme://$host/;
      proxy_http_version 1.1;
      proxy_set_header Host $http_host;
      proxy_set_header Upgrade $http_upgrade;
      proxy_set_header Connection "upgrade";
      proxy_read_timeout 20d;
      # Use preferably
      proxy_set_header X-RStudio-Request $scheme://$host:$server_port$request_uri;
      # OR existing X-Forwarded headers
      proxy_set_header X-Forwarded-Host $host;
      proxy_set_header X-Forwarded-Proto $scheme;
      # OR alternatively the Forwarded header (just an example)
      proxy_set_header Forwarded "host=$host:$server_port;proto=$scheme;";
    }
    proxy_buffering off;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#proxy
上次更新: 2024/03/11, 23:50:27
宝塔配置gitea钩子

← 宝塔配置gitea钩子

最近更新
01
如何挂载raw格式的虚拟机磁盘镜像
12-18
02
《极简市场营销》读书笔记
09-29
03
SNaQ进行系统发育网构建
09-27
更多文章>
打赏我~
主人忘记设置啦
Copyright © 2019-2024 IvisTang | CC BY-SA 4.0 License
沪ICP备20003858号-1 |
已在风雨中度过
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式