From 4cc1ef4baec1f655a23aba0d97b264cd4d459d96 Mon Sep 17 00:00:00 2001 From: eneller Date: Thu, 28 Sep 2023 12:41:30 +0200 Subject: [PATCH] add: nginx --- nginx/auth-basic.conf | 7 +++++++ nginx/certbot.cron | 2 ++ 2 files changed, 9 insertions(+) create mode 100644 nginx/auth-basic.conf create mode 100644 nginx/certbot.cron diff --git a/nginx/auth-basic.conf b/nginx/auth-basic.conf new file mode 100644 index 0000000..df30e7e --- /dev/null +++ b/nginx/auth-basic.conf @@ -0,0 +1,7 @@ +server { + server_name example.com; + auth_basic "Log in to continue:" ; + auth_basic_user_file /etc/nginx/myusers ; + location / { + } +} diff --git a/nginx/certbot.cron b/nginx/certbot.cron new file mode 100644 index 0000000..133b301 --- /dev/null +++ b/nginx/certbot.cron @@ -0,0 +1,2 @@ +0 0 1 * * certbot --nginx renew +