Cleaned up nginx.conf, renamed mysql_user command to something more useful
This commit is contained in:
parent
cdb1dd558e
commit
a46c319745
@ -11,7 +11,6 @@ server {
|
||||
ssl_session_cache shared:SSL:10m;
|
||||
ssl_session_tickets off;
|
||||
|
||||
# Uncomment these lines once you acquire a certificate:
|
||||
ssl_certificate /etc/nginx/flarum.bubblesthebunny.com/fullchain.pem;
|
||||
ssl_certificate_key /etc/nginx/flarum.bubblesthebunny.com/privkey.pem;
|
||||
|
||||
@ -20,26 +19,7 @@ server {
|
||||
|
||||
location ~ \.php$ {
|
||||
include fastcgi_params;
|
||||
# fastcgi_param GATEWAY_INTERFACE CGI/1.1;
|
||||
# fastcgi_param SERVER_SOFTWARE nginx;
|
||||
# fastcgi_param QUERY_STRING $query_string;
|
||||
# fastcgi_param REQUEST_METHOD $request_method;
|
||||
# fastcgi_param CONTENT_TYPE $content_type;
|
||||
# fastcgi_param CONTENT_LENGTH $content_length;
|
||||
# fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
# fastcgi_param SCRIPT_NAME $fastcgi_script_name;
|
||||
# fastcgi_param REQUEST_URI $request_uri;
|
||||
# fastcgi_param DOCUMENT_URI $document_uri;
|
||||
# fastcgi_param DOCUMENT_ROOT /home/flarum/flarum/public;
|
||||
# fastcgi_param SERVER_PROTOCOL $server_protocol;
|
||||
# fastcgi_param REMOTE_ADDR $remote_addr;
|
||||
# fastcgi_param REMOTE_PORT $remote_port;
|
||||
# fastcgi_param SERVER_ADDR $server_addr;
|
||||
# fastcgi_param SERVER_PORT $server_port;
|
||||
# fastcgi_param SERVER_NAME $server_name;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
add_header x-debug $document_root$fastcgi_script_name always;
|
||||
fastcgi_pass 127.0.0.1:9000;
|
||||
}
|
||||
|
||||
|
@ -18,13 +18,12 @@
|
||||
name: mariadb
|
||||
enabled: yes
|
||||
state: started
|
||||
- name: Update root password for MariaDB
|
||||
- name: Create flarum_user with password for MariaDB
|
||||
become: yes
|
||||
become_user: mysql
|
||||
mysql_user:
|
||||
name: flarum_user
|
||||
login_user: mysql
|
||||
# login_password: "{{ mariadb_root_pass }}"
|
||||
password: "{{ flarum_db_pass }}"
|
||||
state: present
|
||||
priv: "*.*:ALL"
|
||||
|
Loading…
Reference in New Issue
Block a user