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!
Bläddra i källkod

Added crontab for nginx

master
förälder
incheckning
1d86fa63bc
3 ändrade filer med 18 tillägg och 0 borttagningar
  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 Visa fil

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

+ 11
- 0
example/gateway/nginx-http/Fockerfile Visa fil

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

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


Laddar…
Avbryt
Spara