initial commit of ban detection project, still missing features and have to do more in regards to js

This commit is contained in:
jenz
2023-02-02 00:19:27 +01:00
parent 0b300cf5f4
commit b080d9cc6f
11 changed files with 870 additions and 0 deletions
@@ -0,0 +1,32 @@
server {
# SSL configuration
listen 443 ssl;
ssl_certificate /etc/nginx/ssl/unloze-cert.pem;
ssl_certificate_key /etc/nginx/ssl/unloze-key.pem;
server_name receive.unloze.com;
client_max_body_size 20M;
#root /var/www/example.com/html;
index index.html index.htm index.php;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:5085;
proxy_set_header X-Forwarded-Proto $scheme;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
}
}