You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
server {
listen80 default_server;
listen [::]:80 default_server;
root /var/www/html;
index index.php index.html index.htm;
server_name _;
# disallow access to hidden fileslocation ~* \/\. {
rewrite^.*$ /index.php last;
}
# prevent access to protected pathsrewrite^\/CHANGELOG.md$ /index.php last;
rewrite^\/README.md$ /index.php last;
rewrite^\/router\.php$ /index.php last;
rewrite^\/system(\/.*)?$ /index.php last;
rewrite^\/user\/cache(\/.*)?$ /index.php last;
rewrite^\/user\/config(\/.*)?$ /index.php last;
rewrite^\/user\/content(\/.*)?$ /index.php last;
# if file does not exist then use index.phptry_files$uri /index.php?$query_string;
# enable phplocation ~ \.php$ {
# make sure we are not tricked into executing arbitrary files as PHPtry_files$uri /index.php?$query_string;
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
}
}
Restart the webserver
sudo systemctl restart nginx.service
Setup the database for statement signatures
Log into the MariaDB database
sudo mysql
Execute the SQL statements
CREATEDATABASEfff CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
USE fff;
CREATETABLEdata (
uid VARCHAR(40) NOT NULLPRIMARY KEY,
name VARCHAR(256) NOT NULL,
mail VARCHAR(256) NOT NULL,
job VARCHAR(256) NOT NULL,
country VARCHAR(256) NOT NULL,
city VARCHAR(256),
website VARCHAR(256),
verify_hints VARCHAR(1000),
iscompany BOOLEANNOT NULL DEFAULT FALSE,
newsletter BOOLEANNOT NULL DEFAULT FALSE,
disabled BOOLEANNOT NULL DEFAULT FALSE,
admin_verify_token VARCHAR(40),
user_newsletter_token VARCHAR(40),
user_verify_token VARCHAR(40),
mailhash VARCHAR(64) AS (SHA2(mail, 256)) PERSISTENT UNIQUE KEY,
subscribed BOOLEANAS (disabled IS FALSE AND admin_verify_token IS NULLAND user_verify_token IS NULLAND newsletter IS TRUE),
verified BOOLEANAS (disabled IS FALSE AND admin_verify_token IS NULLAND user_verify_token IS NULL)
);
GRANT ALL ON fff.* TO 'fff'@'%' IDENTIFIED BY 'fff';
GRANT ALL ON fff.* TO 'fff'@'localhost' IDENTIFIED BY 'fff';
GRANT ALL ON fff.* TO 'fff'@'127.0.0.1' IDENTIFIED BY 'fff';
FLUSH PRIVILEGES;
EXIT;