| @@ -0,0 +1 @@ | |||||
| @weekly service nginx reload >/dev/null 2>&1 | |||||
| @@ -8,6 +8,8 @@ steps: | |||||
| /root/cookiecutter.json ] | /root/cookiecutter.json ] | ||||
| - [ files/nginx.conf, | - [ files/nginx.conf, | ||||
| /root/nginx.conf ] | /root/nginx.conf ] | ||||
| - [ ../files/crontab_root, | |||||
| /root/crontab_root ] | |||||
| - run: | - run: | ||||
| - mkdir -p /root/nginx_template/\{\{cookiecutter.directory_name\}\} | - mkdir -p /root/nginx_template/\{\{cookiecutter.directory_name\}\} | ||||
| - mv -v /root/nginx.conf /root/nginx_template/\{\{cookiecutter.directory_name\}\}/nginx.conf | - mv -v /root/nginx.conf /root/nginx_template/\{\{cookiecutter.directory_name\}\}/nginx.conf | ||||
| @@ -20,3 +22,12 @@ steps: | |||||
| - rm -rvf /root/nginx_template | - rm -rvf /root/nginx_template | ||||
| - rm -rvf ./nginx_conf | - rm -rvf ./nginx_conf | ||||
| - mkdir -p /certbot/webroot | - mkdir -p /certbot/webroot | ||||
| - run: | |||||
| - sysrc nginx_enable=YES | |||||
| - crontab -u root /root/crontab_root | |||||
| - rm -v /root/crontab_root | |||||
| - run: | |||||
| - sysrc sshd_enable=NO | |||||
| - sysrc sendmail_enable=NONE | |||||
| - sysrc clear_tmp_enable=YES | |||||
| - sysrc syslogd_flags="-ss" | |||||
| @@ -8,6 +8,8 @@ steps: | |||||
| /root/cookiecutter.json ] | /root/cookiecutter.json ] | ||||
| - [ files/nginx.conf, | - [ files/nginx.conf, | ||||
| /root/nginx.conf ] | /root/nginx.conf ] | ||||
| - [ ../files/crontab_root, | |||||
| /root/crontab_root ] | |||||
| - run: | - run: | ||||
| - mkdir -p /root/nginx_template/\{\{cookiecutter.directory_name\}\} | - mkdir -p /root/nginx_template/\{\{cookiecutter.directory_name\}\} | ||||
| - mv -v /root/nginx.conf /root/nginx_template/\{\{cookiecutter.directory_name\}\}/nginx.conf | - mv -v /root/nginx.conf /root/nginx_template/\{\{cookiecutter.directory_name\}\}/nginx.conf | ||||
| @@ -21,6 +23,10 @@ steps: | |||||
| - rm -rvf ./nginx_conf | - rm -rvf ./nginx_conf | ||||
| - mkdir -p /usr/local/etc/letsencrypt | - mkdir -p /usr/local/etc/letsencrypt | ||||
| - mkdir -p /certbot/webroot | - mkdir -p /certbot/webroot | ||||
| - run: | |||||
| - sysrc nginx_enable=YES | |||||
| - crontab -u root /root/crontab_root | |||||
| - rm -v /root/crontab_root | |||||
| - run: | - run: | ||||
| - sysrc sshd_enable=NO | - sysrc sshd_enable=NO | ||||
| - sysrc sendmail_enable=NONE | - sysrc sendmail_enable=NONE | ||||