![]() |
1
1
不是每个nginx指令都允许嵌入变量。
但你可以用 ssl_certificate_by_lua_block 和 ngx.ssl 主要工作流程:
|
![]() |
2
2
nginx 1.15.9版本支持“ssl_certificate”和“ssl_certificate_key”指令中的变量。 |
![]() |
3
1
环境变量并不像您已经知道的那样在nginx config中解析,并且不是每个指令都支持变量。 我很久以前就写过一篇文章 https://tarunlalwani.com/post/simple-parameterized-config-files-docker/ 这个想法是在运行nginx之前更新配置文件。所以你会有一个启动脚本
这会让事情变得容易得多。一条更艰难的路线是
https://github.com/openresty/lua-resty-core/blob/master/lib/ngx/ssl.md |
|
John Whitham · 如何修复“尝试调用字符串值”错误 1 年前 |
![]() |
oreto · Roblox Lua脚本,如何使帧从左到右减小其大小? 2 年前 |
![]() |
Jexter Labo · 如何在Lua中从循环表中删除键值 2 年前 |
![]() |
Zack Lee · 在Lua中查找未使用的符号 6 年前 |
|
User101 · Roblox Studio-GUI的按键切换 6 年前 |
![]() |
Doudou · 当我的noob被杀死时,我的GUI如何显示? 6 年前 |
![]() |
eonmax · Lua在后台执行python脚本 6 年前 |