Compare commits

..

No commits in common. 'd1c04cbea4b4c5f5b445fbfc4133192b44bcc10c' and 'b86478ad73f8b03a7cd08e0a93ca86cd87239821' have entirely different histories.

@ -1,25 +1,20 @@
-- Create a user (or more)
CREATE OR REPLACE USER nathan@'%' IDENTIFIED BY 'password';
CREATE USER 'aLeaf'@'%' IDENTIFIED BY "aLeaf";
-- CREATE USER 'aLeaf'@'%' IDENTIFIED BY "aLeaf";
-- Role admin, only they have permission to add others to their role
CREATE OR REPLACE ROLE admin WITH ADMIN nathan@'%';
GRANT ALL ON *.* TO admin WITH GRANT OPTION;
-- GRANT ALL PRIVILEGES ON *.* TO admin WITH GRANT OPTION;
CREATE DATABASE 'aNetwork';
GRANT ALL PRIVILEGES ON 'aNetwork'.* TO 'aLeaf'@'%'; -- The user the website is using for access
-- GRANT ALL PRIVILEGES ON *.* TO 'aLeaf'@'%';
-- GRANT ALL PRIVILEGES ON *.* TO 'nathan'@'%' WITH GRANT OPTION; -- Priv, all of the belo
-- GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES ON *.* TO 'username'@'localhost';
-- GRANT USAGE ON *.* TO 'nathan'@'%'; -- Allows usage of the tables I guess (default on create?)
-- https://stackoverflow.com/questions/64653778/why-are-not-working-my-roles-in-my-mysql-database
SET DEFAULT ROLE admin FOR nathan; -- https://mariadb.com/kb/en/set-default-role/
-- SET ROLE ALL;
FLUSH PRIVILEGES;
-- Remove root, to prevent root login (security, yo)
-- Remove root, to prevent root login
DROP USER root, root@localhost
-- Create tables, and insert data into them

@ -1,8 +1,8 @@
server {
listen 80 default_server;
server_name localhost aLeaf.local;
root /var/www/html/website/public;
# server_name localhost;
root /var/www/html/basic;
index index.php index.html;
error_log /var/log/nginx/error.log;
@ -24,33 +24,7 @@ server {
fastcgi_param PATH_INFO $fastcgi_path_info;
}
#location ~ /.ht {
# deny all;
#}
}
# Add a second, third, etc site like below
# server {
# listen 80; # Listening port, keep 80
# server_name aBasicPHP.local; # Server name, change to the domain name of the site
# root /var/www/html/basic; # Where the files for the site are (within container)
# index index.php index.html;
# error_log /var/log/nginx/error.log;
# access_log /var/log/nginx/access.log;
# sendfile off;
# client_max_body_size 100m;
# location / {
# try_files $uri $uri/ /index.php?$query_string;
# }
# location ~ \.php$ {
# include fastcgi_params;
# fastcgi_pass php:9000;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
# fastcgi_param PATH_INFO $fastcgi_path_info;
# }
# }

@ -1,3 +0,0 @@
sass --no-source-map --style compressed \
--watch php/www/website/public/assets/aSkelly/scss:php/www/website/public/assets/aSkelly/css
Loading…
Cancel
Save