部署仓库初始化:epay 部署配置、补丁与插件
- docker-compose.prod.yml:挂载 epay-ui.css/js/head.php 补丁到 staging(镜像升级不丢) - docker/nginx.conf:补丁静态资源 no-cache,改版立即生效 - patches/: - test.php 修复 paytype JSON 对象导致测试支付页空白 - epay-ui.css 后台全屏/侧栏加宽/导航两列布局覆盖 - epay-ui.js 去除页面容器宽度限制 + 侧栏当前菜单自动滚动 - head.php 资源 ?v= 版本号强制回源 - functions.php is_public_url 白名单等既有补丁 - plugins/ 支付插件源码 - .gitignore 排除 .env 等敏感与临时文件
This commit is contained in:
commit
b7613ba082
176 files changed
+47057
No files matched your search
@@ -0,0 +1,50 @@
|
||||
; ============================================
|
||||
; 彩虹易支付 PHP 自定义配置
|
||||
; ============================================
|
||||
|
||||
; 时区
|
||||
date.timezone = Asia/Shanghai
|
||||
|
||||
; 错误报告(生产环境关闭详细错误)
|
||||
error_reporting = E_ERROR | E_PARSE | E_COMPILE_ERROR
|
||||
display_errors = Off
|
||||
display_startup_errors = Off
|
||||
|
||||
; 性能
|
||||
max_execution_time = 300
|
||||
max_input_time = 300
|
||||
memory_limit = 256M
|
||||
|
||||
; 上传
|
||||
upload_max_filesize = 50M
|
||||
post_max_size = 50M
|
||||
file_uploads = On
|
||||
|
||||
; Session
|
||||
session.save_handler = files
|
||||
session.save_path = "/var/lib/php/sessions"
|
||||
session.gc_maxlifetime = 1440
|
||||
session.cookie_httponly = On
|
||||
; 生产环境部署在 HTTPS 下时建议改为 On
|
||||
session.cookie_secure = Off
|
||||
session.cookie_samesite = "Strict"
|
||||
session.use_strict_mode = 1
|
||||
session.use_only_cookies = 1
|
||||
|
||||
; 安全
|
||||
expose_php = Off
|
||||
allow_url_fopen = Off
|
||||
allow_url_include = Off
|
||||
disable_functions = exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source,pcntl_exec
|
||||
enable_dl = Off
|
||||
|
||||
; cURL
|
||||
curl.cainfo = /etc/ssl/certs/ca-certificates.crt
|
||||
|
||||
; OpCache
|
||||
opcache.enable = 1
|
||||
opcache.memory_consumption = 128
|
||||
opcache.interned_strings_buffer = 8
|
||||
opcache.max_accelerated_files = 10000
|
||||
opcache.revalidate_freq = 2
|
||||
opcache.fast_shutdown = 1
|
||||
Reference in new issue
Block a user