Begin adding LetsEncrypt. Project runs successfully but still has a slight chicken and egg issue if certs are not copied from another server.
This commit is contained in:
@ -1,20 +1,20 @@
|
||||
# 2022-10-05 Hyperling
|
||||
|
||||
user nginx;
|
||||
worker_processes auto;
|
||||
|
||||
error_log /var/log/nginx/error.log notice;
|
||||
pid /var/run/nginx.pid;
|
||||
user nginx;
|
||||
worker_processes auto;
|
||||
|
||||
error_log /var/log/nginx/error.log notice;
|
||||
pid /var/run/nginx.pid;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
|
||||
|
||||
http {
|
||||
include /etc/nginx/mime.types;
|
||||
default_type application/octet-stream;
|
||||
include /etc/nginx/mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||||
'$status $body_bytes_sent "$http_referer" '
|
||||
@ -22,12 +22,21 @@ http {
|
||||
|
||||
access_log /var/log/nginx/access.log main;
|
||||
|
||||
sendfile on;
|
||||
#tcp_nopush on;
|
||||
sendfile on;
|
||||
#tcp_nopush on;
|
||||
|
||||
keepalive_timeout 65;
|
||||
|
||||
#gzip on;
|
||||
#gzip on;
|
||||
|
||||
## LetsEncrypt Certbot Setup ##
|
||||
# Allow nginx to fulfill LetsEncrypt Certbot challenges.
|
||||
server {
|
||||
location /.well-known/acme-challenge/ {
|
||||
root /etc/nginx/certs-letsencrypt;
|
||||
}
|
||||
}
|
||||
|
||||
## Reverse Proxied Website Configurations ##
|
||||
include /etc/nginx/conf.d/*;
|
||||
}
|
||||
|
Reference in New Issue
Block a user