V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
V2EX  ›  anthoy  ›  全部回复第 6 页 / 共 9 页
回复总数  167
1  2  3  4  5  6  7  8  9  
2020 年 10 月 26 日
回复了 jamfer 创建的主题 推广 回馈 V2,送一把樱桃红轴的 71 键双模机械键盘
我需要
2020 年 10 月 19 日
回复了 FartNoSound 创建的主题 宽带症候群 2020 年了,你们的运营商套餐是?
广东移动 19 套餐+8 元 8G 流量
2020 年 9 月 23 日
回复了 psw84 创建的主题 推广 NUC 黑果套餐 国庆专车 福利帖
分母
2020 年 7 月 22 日
回复了 anthoy 创建的主题 NGINX nginx 双重认证跳转错误
已经解决,之前也遇到过这种情况,但这次没有联想起来
解决办法 https://www.escapelife.site/posts/73685720.html
2020 年 7 月 22 日
回复了 anthoy 创建的主题 NGINX nginx 双重认证跳转错误
@brader 我用 curl 测试了直接请求某个接口,可以返回 html,应该是你说的浏览器安全策略问题
2020 年 7 月 22 日
回复了 anthoy 创建的主题 NGINX nginx 双重认证跳转错误
@brader 使用 curl 如下:
```bash
# 命令
curl --cert ./client.crt --key ./client.key https://xxx:4443 -k
# 返回
<html><head><script>window.location = '/web' + location.hash;</script></head></html>
```
抽奖[333]
2020 年 5 月 21 日
回复了 anthoy 创建的主题 程序员 移动网络公网 IP 问题
@systemcall 测试过,看结果是不太稳定,但很少是 100K/s 这样子,但我看 ftp 的日志是有有些时候只有 100k,有些时候可以 10000k/s
2020 年 5 月 20 日
回复了 anthoy 创建的主题 程序员 移动网络公网 IP 问题
@LGA1150 应该不是
2020 年 5 月 20 日
回复了 anthoy 创建的主题 程序员 移动网络公网 IP 问题
@Mrixianmao 我现在用的是[docker-vsftpd]( https://github.com/fauria/docker-vsftpd),用的是 21 和 21100-21105,是 21 问题?
分子
分母
2020 年 3 月 27 日
回复了 pseudo 创建的主题 iOS [Pics21] 不仅是滚动截屏 App 内附 50 个 V 友独家福利
谢谢,已收到
2020 年 3 月 26 日
回复了 pseudo 创建的主题 iOS [Pics21] 不仅是滚动截屏 App 内附 50 个 V 友独家福利
OTY0MTU3Njc1QHFxLmNvbQ==
分母
2020 年 3 月 5 日
回复了 anthoy 创建的主题 NGINX jwilder / nginx-proxy 库的一些问题
@evanshh 你这个直接创建一个 nginx.conf 映射进去容器里面就可以啦,例如我创建 nginx.conf
```bash
user nginx;
worker_processes auto;

error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;


events {
worker_connections 1024;
}


http {
include /etc/nginx/mime.types;
default_type application/octet-stream;

log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';

log_format access '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" $http_x_forwarded_for '
'upstream_addr:"$upstream_addr" upstream_status:"$upstream_status" upstream_response_time:"$upstream_response_time" request_time:"$request_time"';

access_log /var/log/nginx/access.log main;

sendfile on;
#tcp_nopush on;

keepalive_timeout 65;

# 开启 gzip
gzip on;
# 启用 gzip 压缩的最小文件,小于设置值的文件将不会压缩
gzip_min_length 1k;
# gzip 压缩级别,1-10,数字越大压缩的越好,也越占用 CPU 时间
gzip_comp_level 6;
# 进行压缩的文件类型。javascript 有多种形式。其中的值可以在 mime.types 文件中找到。
# text/plain text/css application/javascript application/json application/x-javascript application/xml text/javascript 此部分和生成的有重复
gzip_types application/x-httpd-php image/jpeg image/gif image/png font/ttf font/otf image/svg+xml;
# 是否在 http header 中添加 Vary: Accept-Encoding,建议开启
gzip_vary on;
# 禁用 IE 6 gzip
gzip_disable "MSIE [1-6]\.";

# 最大上传大小
client_max_body_size 250M;

include /etc/nginx/conf.d/*.conf;
}
daemon off;
```
然后在容器启动时映射- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro ;就可以覆盖主配置了
2020 年 2 月 28 日
回复了 zhyd1997 创建的主题 上海 进退维谷
@qq31610793 我打错路由就看到了
看了,分母
2019 年 12 月 25 日
回复了 litp 创建的主题 Python Python Web 开发, PyCharm 还是 VScode 或者其他? macOS 平台
目前 vscode 足够使用
2019 年 11 月 4 日
回复了 Achilless 创建的主题 NGINX nginx 代理 websocket 出现 404 错误
我使用是用 uwsgi 启动 django,daphne 启动 django-channel,两个使用不同的端口,nginx 反向代理 /和 /ssh,正常使用
你这里的可能是这个:
```bash
location /ssh {
uwsgi_pass 127.0.0.1:8080;
include /opt/clic_env/plat/uwsgi_params;
```
你确定你的 uwsgi 同时启动了 django 和 django-channels ?你可以使用尝试不使用 uwsgi_pass 转发 websocket 或者不用 nginx,直接调试下 uwsgi
1  2  3  4  5  6  7  8  9  
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   961 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 37ms · UTC 20:06 · PVG 04:06 · LAX 13:06 · JFK 16:06
♥ Do have faith in what you're doing.