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!
Ver código fonte

Added crontab for nginx

master
Stanislaw Adaszewski 4 anos atrás
pai
commit
1d86fa63bc
3 arquivos alterados com 18 adições e 0 exclusões
  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 Ver arquivo

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

+ 11
- 0
example/gateway/nginx-http/Fockerfile Ver arquivo

@@ -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"

+ 6
- 0
example/gateway/nginx-https/Fockerfile Ver arquivo

@@ -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


Carregando…
Cancelar
Salvar