Skip to content

Commit 26dbbda

Browse files
committed
chore(nginx): update configuration to remove deprecated directives.
Found during nginx update on the server: Setting up nginx (1.16.1-1~xenial) ... nginx: [warn] the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in /etc/nginx/conf.d/mystamps-ssl.conf:13 nginx: [warn] the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in /etc/nginx/conf.d/mystamps-static.conf:8 See also: https://stackoverflow.com/questions/51703109/nginx-the-ssl-directive-is-deprecated-use-the-listen-ssl [skip ci]
1 parent f707ea8 commit 26dbbda

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/main/config/nginx/mystamps-ssl.conf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@ map $http_accept_language $lang {
44
}
55

66
server {
7-
listen 443 default_server;
7+
listen 443 ssl default_server;
88
server_name my-stamps.ru www.my-stamps.ru;
99
server_tokens off;
1010
error_log /data/logs/nginx.log notice;
1111
proxy_buffers 128 4k;
1212

13-
ssl on;
1413
ssl_certificate /etc/ssl/my-stamps.ru.crt;
1514
ssl_certificate_key /etc/ssl/my-stamps.ru.key;
1615

src/main/config/nginx/mystamps-static.conf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
server {
2-
listen 443;
2+
listen 443 ssl;
33
server_name stamps.filezz.ru;
44
server_tokens off;
55
error_log /data/logs/nginx-static.log notice;
66
proxy_buffers 128 4k;
77

8-
ssl on;
98
ssl_certificate /etc/ssl/my-stamps.ru.crt;
109
ssl_certificate_key /etc/ssl/my-stamps.ru.key;
1110

0 commit comments

Comments
 (0)