This commit is contained in:
poiuty 2022-07-27 11:48:27 +03:00
commit eabb01cfef
21 changed files with 921 additions and 0 deletions

16
install/conf/app.service Normal file
View file

@ -0,0 +1,16 @@
[Unit]
Description=Stat Daemon
After=network.target manticore.service
[Service]
LimitNOFILE=65535
Type=simple
GuessMainPID=no
ExecStart=/home/stat/go/app/app
Restart=always
User=stat
StandardOutput=syslog
StandardError=syslog
[Install]
WantedBy=multi-user.target

4
install/conf/cron Normal file
View file

@ -0,0 +1,4 @@
*/5 * * * * stat php /home/stat/php/start.php > /home/stat/php/log.txt 2>&1
0 12 1 * * stat php /home/stat/php/telegram.php >/dev/null 2>&1
0 12 15 */3 * stat php /home/stat/php/telegram2.php >/dev/null 2>&1
* * * * * www-data curl --silent https://chaturbate100.com/index.php >/dev/null 2>&1

45
install/conf/default Normal file
View file

@ -0,0 +1,45 @@
server {
listen 80;
listen [::]:80;
server_name _;
location ^~ /.well-known/ {
root /var/www/html;
default_type "text/plain";
}
location / {
return 301 https://$host$request_uri;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name chaturbate100.com;
ssl_certificate /etc/letsencrypt/live/chaturbate100.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/chaturbate100.com/privkey.pem;
index index.php index.html index.htm;
root /var/www/chaturbate100.com;
location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|ico|bmp|woff)$ {
expires 30d;
access_log off;
}
location ~ \.php$ {
try_files $uri $uri/ =404;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_script_name;
fastcgi_pass unix:/run/php/php7.3-fpm.sock;
}
location /ws/ {
proxy_pass http://localhost:8080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
location ~ ^/(cmd|list)/ {
access_log off;
allow 127.0.0.1;
deny all;
proxy_pass http://localhost:8080;
}
}

View file

@ -0,0 +1,19 @@
index stat {
type = rt
rt_mem_limit = 1024M
rt_attr_uint = did
rt_attr_uint = rid
rt_attr_uint = token
rt_attr_timestamp = time
rt_field = tmp
path = /var/lib/manticore/data/stat
}
searchd {
listen = 127.0.0.1:9312
listen = 127.0.0.1:9306:mysql41
log = /var/log/manticore/searchd.log
query_log = /var/log/manticore/query.log
pid_file = /var/run/manticore/searchd.pid
binlog_path = /var/lib/manticore/data
}

60
install/conf/nginx.conf Normal file
View file

@ -0,0 +1,60 @@
user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
worker_rlimit_nofile 65535;
events {
worker_connections 32768;
# multi_accept on;
use epoll;
}
http {
##
# Basic Settings
##
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
server_tokens off;
# server_names_hash_bucket_size 64;
# server_name_in_redirect off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
##
# SSL Settings
##
ssl_dhparam /etc/nginx/ssl/dhparam.pem;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE
ssl_prefer_server_ciphers on;
##
# Logging Settings
##
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
##
# Gzip Settings
##
gzip on;
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;
##
# Virtual Host Configs
##
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}