edyuy's recent timeline updates
edyuy

edyuy

V2EX member #217150, joined on 2017-02-24 17:13:21 +08:00
edyuy's recent replies
May 31, 2023
Replied to a topic by rivercherdeeeeee 程序员 iPhone14 系列哪个信号相对好一点
首发入的,iPhone 14 Pro ,单卡使用,上海市区,日常大马路上接不到电话(别人打电话我手机毫无反应)+莫名其妙断网(恢复看心情),可以说是近几年最差的
@zbttl iPhone 11 Pro 用户表示拍照大概率后台应用全清
Sep 11, 2018
Replied to a topic by 1daydayde GitHub Github 是不是挂了?
我也这样,目测是挂了
OpenShift 的架构和一般的 VM 是不一样的,它的 https 由上一层的 nginx 所提供(所以你也发现了你的 nginx 配置里连证书和加密方式都不配置),所以在用户的应用层面拿到的都是 http 的请求(当然,也都是 80 端口的),其他答案那个方式也是不行的,因为你的应用并不会去监听 80 和 443 。正确的做法是,首先把你写的两段 if 替换为

if ($http_x_forwarded_proto != "https") {
rewrite ^(.*)$ https://$server_name$1 permanent;
}

使用上层 nginx 传来的客户端访问方式进行判断,其中 rewrite 改为 return 301 也是可以的
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1051 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 13ms · UTC 22:38 · PVG 06:38 · LAX 15:38 · JFK 18:38
♥ Do have faith in what you're doing.