Skip to content

Commit

Permalink
Merge pull request #43 from devsapp/refine-php-other
Browse files Browse the repository at this point in the history
refine php other tpl
  • Loading branch information
rsonghuster authored Apr 22, 2022
2 parents 5a84608 + 4013b69 commit ecdd7e3
Show file tree
Hide file tree
Showing 4,606 changed files with 615 additions and 157,657 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
5 changes: 4 additions & 1 deletion update.list
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
web-framework/php/discuz
web-framework/php/ecshop
web-framework/php/metinfo
web-framework/php/typecho
web-framework/php/whatsns
2 changes: 1 addition & 1 deletion web-framework/php/ecshop/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Type: Application
Name: start-ecshop
Provider:
- 阿里云
Version: 1.2.5
Version: 1.2.6
Description: ECShop是一款B2C独立网店系统,适合企业及个人快速构建个性化网上商店。系统是基于PHP语言及MYSQL数据库构架开发的跨平台开源程序
HomePage: https://github.com/devsapp/start-web-framework
Tags:
Expand Down
75 changes: 75 additions & 0 deletions web-framework/php/ecshop/src/code/nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
error_log /tmp/log/nginx/error.log error;
worker_processes auto;
pid /tmp/nginx.pid;

events {
worker_connections 768;
}

http {
client_body_temp_path /tmp/var/nginx/body;
fastcgi_temp_path /tmp/var/nginx/fastcgi;
proxy_temp_path /tmp/var/nginx/proxy;
uwsgi_temp_path /tmp/var/nginx/uwsgi;
scgi_temp_path /tmp/var/nginx/scgi;

sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 1200;
types_hash_max_size 2048;

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

ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
ssl_prefer_server_ciphers on;

access_log /dev/stdout;
error_log /dev/stderr error;

gzip on;
gzip_disable "msie6";

server {
listen 9000;
server_name localhost;
root /mnt/auto/ecshop;

add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options "nosniff";

index index.html index.htm index.php;

charset utf-8;

location / {
try_files $uri $uri/ /index.php?$query_string;
}

location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }

error_page 404 /index.php;

location ~ \.php$ {
fastcgi_pass 127.0.0.1:9527;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
proxy_read_timeout 180;
}

location ~.*\.(js|css|html|png|jpg|jpeg|gif|gz|svg|mp4|ogg|ogv|webm|htc|xml|woff)$
{
expires 1d;
access_log off;
try_files $uri =404;
}

location ~ /\.(?!well-known).* {
deny all;
}
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[global]
pid = /tmp/php7.4-fpm.pid
error_log = /tmp/php7.4-fpm.log

[www]
user = www-data
group = www-data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ bcmath.scale = 0

[Session]
session.save_handler = files
session.save_path=/mnt/auto/sessions
session.use_strict_mode = 0
session.use_cookies = 1
session.use_only_cookies = 1
Expand Down Expand Up @@ -133,45 +134,64 @@ soap.wsdl_cache_limit = 5
[ldap]
ldap.max_links = -1

extension_dir=/code/root/usr/lib/php/20170718/

extension=phar.so
extension=exif.so
extension=calendar.so
extension=tokenizer.so
extension=zip.so
extension_dir=/usr/lib/php/20190902/
extension=bcmath.so
extension=ctype.so
extension=mysqlnd.so
extension=ffi.so
extension=gettext.so
extension=intl.so
extension=mcrypt.so
extension=opcache.so
extension=pdo_sqlite.so
extension=protobuf.so
extension=simplexml.so
extension=shmop.so
extension=posix.so
extension=gd.so
extension=sysvsem.so
extension=sockets.so
extension=pdo.so
extension=dom.so
extension=xmlreader.so
extension=swoole.so
extension=tokenizer.so
extension=xmlwriter.so
extension=build
extension=curl.so
extension=fileinfo.so
extension=pdo_mysql.so
extension=sysvmsg.so
extension=iconv.so
extension=json.so
extension=ftp.so
extension=mysqli.so
extension=intl.so
extension=memcached.so
extension=pdo.so
extension=pgsql.so
extension=readline.so
extension=gettext.so
extension=sysvshm.so
extension=curl.so
extension=ldap.so
extension=mbstring.so
extension=xmlrpc.so
extension=soap.so
extension=sysvmsg.so
extension=xml.so
extension=iconv.so
extension=xsl.so
extension=wddx.so
extension=bz2.so
extension=dom.so
extension=ftp.so
extension=imagick.so
extension=ldap.so
extension=mysqli.so
extension=pdo_mysql.so
extension=phar.so
extension=redis.so
extension=sockets.so
extension=sysvsem.so
extension=xmlreader.so
extension=zip.so
extension=calendar.so
extension=exif.so
extension=gd.so
extension=imap.so
extension=mbstring.so
extension=mysqlnd.so
extension=pdo_pgsql.so
extension=posix.so
extension=shmop.so
extension=sqlite3.so
extension=sysvshm.so
extension=xmlrpc.so

[opcache]
zend_extension=opcache.so

session.save_path=/tmp/var/sessions
opcache.enable=1
opcache.memory_consumption=256
opcache.interned_strings_buffer=64
opcache.max_accelerated_files=32531
opcache.save_comments=1
opcache.fast_shutdown=0
Binary file not shown.
Binary file removed web-framework/php/ecshop/src/code/root/bin/loginctl
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

This file was deleted.

14 changes: 0 additions & 14 deletions web-framework/php/ecshop/src/code/root/etc/cron.d/php

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit ecdd7e3

Please sign in to comment.