introduce steps
This commit is contained in:
10
nginx/acme.cfg
Normal file
10
nginx/acme.cfg
Normal file
@@ -0,0 +1,10 @@
|
||||
# Serve only through HTTP while updating the certificate
|
||||
server {
|
||||
listen 80;
|
||||
server_name kornerr.ru;
|
||||
root /var/www/html;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
}
|
||||
@@ -5,6 +5,7 @@ server {
|
||||
return 301 https://$server_name$request_uri;
|
||||
}
|
||||
|
||||
# Serve through HTTPS only
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name kornerr.ru;
|
||||
|
||||
9
nginx/setup
Normal file
9
nginx/setup
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash -e
|
||||
SDIR=$(cd "$(dirname "$0")" ; pwd -P)
|
||||
T=$SDIR/../step
|
||||
|
||||
STEP=0
|
||||
source $T/ensureRootUser
|
||||
source $T/installNginx
|
||||
source $T/copyNginxProdConfig
|
||||
source $T/restartNginx
|
||||
Reference in New Issue
Block a user