File tree 3 files changed +9
-6
lines changed
assets/runtime/config/nginx
3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,8 @@ server {
23
23
## Pages serving host
24
24
server {
25
25
listen 0.0.0.0:443 ssl;
26
- listen [::]:443 ssl http2;
26
+ listen [::]:443 ssl;
27
+ http2 on;
27
28
28
29
## Replace this with something like pages.gitlab.com
29
30
server_name ~^.*{{GITLAB_PAGES_DOMAIN}};
Original file line number Diff line number Diff line change @@ -11,14 +11,15 @@ server {
11
11
server_name {{GITLAB_REGISTRY_HOST}};
12
12
server_tokens off; ## Don't show the nginx version number, a security best practice
13
13
return 301 https://$http_host:$request_uri;
14
- access_log {{GITLAB_LOG_DIR}}/nginx/gitlab_registry_access.log gitlab_access ;
14
+ access_log {{GITLAB_LOG_DIR}}/nginx/gitlab_registry_access.log;
15
15
error_log {{GITLAB_LOG_DIR}}/nginx/gitlab_registry_error.log;
16
16
}
17
17
18
18
server {
19
19
# If a different port is specified in https://gitlab.com/gitlab-org/gitlab-foss/blob/8-8-stable/config/gitlab.yml.example#L182,
20
20
# it should be declared here as well
21
- listen *:{{GITLAB_REGISTRY_PORT}} ssl http2;
21
+ listen *:{{GITLAB_REGISTRY_PORT}} ssl;
22
+ http2 on;
22
23
server_name {{GITLAB_REGISTRY_HOST}};
23
24
server_tokens off; ## Don't show the nginx version number, a security best practice
24
25
@@ -36,7 +37,7 @@ server {
36
37
ssl_session_cache builtin:1000 shared:SSL:10m;
37
38
ssl_session_timeout 5m;
38
39
39
- access_log {{GITLAB_LOG_DIR}}/nginx/gitlab_registry_access.log gitlab_access ;
40
+ access_log {{GITLAB_LOG_DIR}}/nginx/gitlab_registry_access.log;
40
41
error_log {{GITLAB_LOG_DIR}}/nginx/gitlab_registry_error.log;
41
42
42
43
location / {
Original file line number Diff line number Diff line change @@ -55,8 +55,9 @@ server {
55
55
56
56
## HTTPS host
57
57
server {
58
- listen 0.0.0.0:443 ssl http2;
59
- listen [::]:443 ipv6only=on ssl http2 default_server;
58
+ listen 0.0.0.0:443 ssl;
59
+ listen [::]:443 ipv6only=on ssl default_server;
60
+ http2 on;
60
61
server_name {{GITLAB_HOST}}; ## Replace this with something like gitlab.example.com
61
62
server_tokens off; ## Don't show the nginx version number, a security best practice
62
63
You can’t perform that action at this time.
0 commit comments