1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

nginx softcoding2

This commit is contained in:
Jerry Vonau 2021-06-28 17:14:24 -05:00
parent 88eebd31da
commit f5320913a4
2 changed files with 11 additions and 5 deletions

View file

@ -40,8 +40,14 @@
- name: Insure alternate nginx path is present - name: Insure alternate nginx path is present
file: file:
path: "{{ item }}"
state: directory state: directory
path: "{{ nginx_conf_dir }}" with_items:
- "{{ nginx_conf_dir }}"
- "{{ nginx_dir }}/modules-available"
- "{{ nginx_dir }}/modules-enabled"
- "{{ nginx_dir }}/sites-available"
- "{{ nginx_dir }}/sites-enabled"
- name: Remove NGINX default config /etc/nginx/sites-enabled/default - name: Remove NGINX default config /etc/nginx/sites-enabled/default
file: file:

View file

@ -5,7 +5,7 @@
user www-data; user www-data;
worker_processes auto; worker_processes auto;
pid /run/nginx.pid; pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf; include {{ nginx_dir }}/modules-enabled/*.conf;
events { events {
worker_connections 768; worker_connections 768;
@ -29,7 +29,7 @@ http {
server_names_hash_bucket_size 64; server_names_hash_bucket_size 64;
# server_name_in_redirect off; # server_name_in_redirect off;
include /etc/nginx/mime.types; include {{ nginx_dir }}/mime.types;
default_type text/html; default_type text/html;
## ##
@ -91,10 +91,10 @@ http {
## ##
# include a server file which in turn includes conf.d/* # include a server file which in turn includes conf.d/*
include /etc/nginx/server.conf; include {{ nginx_dir }}/server.conf;
# include other sites # include other sites
include /etc/nginx/sites-enabled/*.conf; include {{ nginx_dir }}/sites-enabled/*.conf;
# define the upstream backend fastcgi for php # define the upstream backend fastcgi for php
upstream php { upstream php {