mirror of
				https://github.com/optim-enterprises-bv/Mailu-OIDC.git
				synced 2025-10-31 01:57:58 +00:00 
			
		
		
		
	Adding options for mail-letsencrypt
This commit is contained in:
		| @@ -16,9 +16,11 @@ with open("/etc/resolv.conf") as handle: | ||||
| # TLS configuration | ||||
| args["TLS"] = { | ||||
|     "cert": ("/certs/cert.pem", "/certs/key.pem"), | ||||
|     "mail": ("/certs/cert.pem", "/certs/key.pem"), | ||||
|     "letsencrypt": ("/certs/letsencrypt/live/mailu/fullchain.pem", | ||||
|         "/certs/letsencrypt/live/mailu/privkey.pem"), | ||||
|     "mail": ("/certs/cert.pem", "/certs/key.pem"), | ||||
|     "mail-letsencrypt": ("/certs/letsencrypt/live/mailu/fullchain.pem", | ||||
|         "/certs/letsencrypt/live/mailu/privkey.pem"), | ||||
|     "notls": None | ||||
| }[args["TLS_FLAVOR"]] | ||||
|  | ||||
| @@ -26,7 +28,6 @@ if args["TLS"] and not all(os.path.exists(file_path) for file_path in args["TLS" | ||||
|     print("Missing cert or key file, disabling TLS") | ||||
|     args["TLS_ERROR"] = "yes" | ||||
|  | ||||
|  | ||||
| # Build final configuration paths | ||||
| convert("/conf/tls.conf", "/etc/nginx/tls.conf", args) | ||||
| convert("/conf/proxy.conf", "/etc/nginx/proxy.conf", args) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 SunMar
					SunMar