docker nginx jupyter
docker 中nginx 和jupyter 如何反向代理
nginx 使用 docker.io/richarvey/nginx-php-fpm:latest , 配置在 /etc/nginx/sites-enables
jupyter 使用 docker.io/tensorflow/tensorflow:latest 配置在 ~/.jupyter 目錄 ip 172.17.0.7
解決wss的錯誤
$proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
nginx 配置 |
server{
error_page 404 /404.html; location ^~ /sad.svg { # pass the PHP scripts to FastCGI server listening on socket location ~* \.(jpg|jpeg|gif|png|css|js|ico|webp|tiff|ttf|svg)$ { # deny access to . files, for security |
import os c = c # pylint:disable=undefined-variable # sets a password if PASSWORD is set in the environment |