IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts are meant only to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED projects. Thank you for your understanding!
Browse Source

Added crontab for nginx

master
parent
commit
1d86fa63bc
3 changed files with 18 additions and 0 deletions
  1. +1
    -0
      example/gateway/files/crontab_root
  2. +11
    -0
      example/gateway/nginx-http/Fockerfile
  3. +6
    -0
      example/gateway/nginx-https/Fockerfile

+ 1
- 0
example/gateway/files/crontab_root View File

@@ -0,0 +1 @@
@weekly service nginx reload >/dev/null 2>&1

+ 11
- 0
example/gateway/nginx-http/Fockerfile View File

@@ -8,6 +8,8 @@ steps:
/root/cookiecutter.json ]
- [ files/nginx.conf,
/root/nginx.conf ]
- [ ../files/crontab_root,
/root/crontab_root ]
- run:
- mkdir -p /root/nginx_template/\{\{cookiecutter.directory_name\}\}
- 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 ./nginx_conf
- 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"

+ 6
- 0
example/gateway/nginx-https/Fockerfile View File

@@ -8,6 +8,8 @@ steps:
/root/cookiecutter.json ]
- [ files/nginx.conf,
/root/nginx.conf ]
- [ ../files/crontab_root,
/root/crontab_root ]
- run:
- mkdir -p /root/nginx_template/\{\{cookiecutter.directory_name\}\}
- mv -v /root/nginx.conf /root/nginx_template/\{\{cookiecutter.directory_name\}\}/nginx.conf
@@ -21,6 +23,10 @@ steps:
- rm -rvf ./nginx_conf
- mkdir -p /usr/local/etc/letsencrypt
- 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


Loading…
Cancel
Save