diff --git a/admin/pom.xml b/admin/pom.xml index 2a8eeab..bec010a 100644 --- a/admin/pom.xml +++ b/admin/pom.xml @@ -78,7 +78,7 @@ - ${artifactId} + nginx-admin src/main/java diff --git a/admin/src/main/resources/nginx-1.16.1.zip b/admin/src/main/resources/nginx-1.16.1.zip index 492c072..381cea8 100644 Binary files a/admin/src/main/resources/nginx-1.16.1.zip and b/admin/src/main/resources/nginx-1.16.1.zip differ diff --git a/admin/src/main/resources/templates/nginx.conf.ftl b/admin/src/main/resources/templates/nginx.conf.ftl index 6f874a7..f23cc98 100644 --- a/admin/src/main/resources/templates/nginx.conf.ftl +++ b/admin/src/main/resources/templates/nginx.conf.ftl @@ -34,12 +34,19 @@ http { <#list services?keys as key> server { - listen ${key}; - server_name localhost; - - #charset koi8-r; - - #access_log logs/host.access.log main; + listen ${key} <#if key == '443'>ssl; + server_name wbsite.xyz; + + <#if key == '443'> + ssl on; + ssl_certificate 3380768_www.wbsite.xyz.crt; + ssl_certificate_key 3380768_www.wbsite.xyz.key; + ssl_session_timeout 5m; + ssl_protocols TLSv1 TLSv1.1 TLSv1.2; + ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4; + ssl_prefer_server_ciphers on; + + access_log logs/host.access.log main; <#list services[key] as mapping> <#if mapping.type="HTTP">