nginx.conf:
server {
server_name community.h7.org;
listen 5.45.114.72:80;
listen [2a03:f480:1:1a::27]:80;
listen 80;
gzip on;
gzip_min_length 1024;
gzip_proxied expired no-cache no-store private auth;
gzip_types text/css image/x-ico application/pdf image/jpeg image/png image/gif application/javascript application/x-javascript application/x-pointplus;
set $root_path /var/www/h7org/data/www/community.h7.org;
root $root_path;
disable_symlinks if_not_owner from=$root_path;
location / {
#index index.html;
#try_files $uri $uri/ /index.php?$args;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
proxy_pass http://127.0.0.1:4567;
proxy_redirect off;
# Socket.IO Support
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
location ~ \.php$ {
}
#location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpeg|avi|zip|gz|bz2|rar|swf|ico)$ {
# try_files $uri $uri/ @fallback;
# expires 30d;
#}
location @fallback {
}
include /etc/nginx/fastpanel2-sites/h7org/community.h7.org.includes;
include /etc/nginx/fastpanel2-includes/*.conf;
error_log /var/www/h7org/data/logs/community.h7.org-frontend.error.log;
access_log /var/www/h7org/data/logs/community.h7.org-frontend.access.log;
}
config.json:
{
"url": "http://community.h7.org",
"secret": "***",
"database": "redis",
"redis": {
"host": "127.0.0.1",
"port": "6379",
"password": "***",
"database": "0"
}
}