Add immich and switch to nginx-acme
This commit is contained in:
@@ -3,6 +3,7 @@ worker_processes auto;
|
||||
worker_cpu_affinity auto;
|
||||
pid /run/nginx.pid;
|
||||
error_log /var/log/nginx/error.log;
|
||||
load_module /usr/lib/nginx/modules/ngx_http_acme_module.so;
|
||||
|
||||
events {
|
||||
worker_connections 768;
|
||||
@@ -10,6 +11,14 @@ events {
|
||||
}
|
||||
|
||||
http {
|
||||
resolver 127.0.0.11:53;
|
||||
acme_issuer letsencrypt {
|
||||
uri https://acme-v02.api.letsencrypt.org/directory;
|
||||
contact matthew.pomes@pm.me;
|
||||
state_path /var/cache/nginx/acme-letsencrypt;
|
||||
|
||||
accept_terms_of_service;
|
||||
}
|
||||
|
||||
##
|
||||
# Basic Settings
|
||||
@@ -57,6 +66,12 @@ http {
|
||||
##
|
||||
|
||||
include /etc/nginx/sites-enabled/*;
|
||||
server {
|
||||
listen 80;
|
||||
location / {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user