Cleaned up nginx.conf, renamed mysql_user command to something more useful

This commit is contained in:
Dak Thompson 2024-03-08 17:48:35 -06:00
parent cdb1dd558e
commit a46c319745
2 changed files with 1 additions and 22 deletions

View File

@ -11,7 +11,6 @@ server {
ssl_session_cache shared:SSL:10m; ssl_session_cache shared:SSL:10m;
ssl_session_tickets off; ssl_session_tickets off;
# Uncomment these lines once you acquire a certificate:
ssl_certificate /etc/nginx/flarum.bubblesthebunny.com/fullchain.pem; ssl_certificate /etc/nginx/flarum.bubblesthebunny.com/fullchain.pem;
ssl_certificate_key /etc/nginx/flarum.bubblesthebunny.com/privkey.pem; ssl_certificate_key /etc/nginx/flarum.bubblesthebunny.com/privkey.pem;
@ -20,26 +19,7 @@ server {
location ~ \.php$ { location ~ \.php$ {
include fastcgi_params; 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)(/.+)$; fastcgi_split_path_info ^(.+\.php)(/.+)$;
add_header x-debug $document_root$fastcgi_script_name always;
fastcgi_pass 127.0.0.1:9000; fastcgi_pass 127.0.0.1:9000;
} }

View File

@ -18,13 +18,12 @@
name: mariadb name: mariadb
enabled: yes enabled: yes
state: started state: started
- name: Update root password for MariaDB - name: Create flarum_user with password for MariaDB
become: yes become: yes
become_user: mysql become_user: mysql
mysql_user: mysql_user:
name: flarum_user name: flarum_user
login_user: mysql login_user: mysql
# login_password: "{{ mariadb_root_pass }}"
password: "{{ flarum_db_pass }}" password: "{{ flarum_db_pass }}"
state: present state: present
priv: "*.*:ALL" priv: "*.*:ALL"