I got 2 nginx sites enabled:
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name 202.nl84.seedit4.me;
location /.well-known {
alias /srv/.well-known;
allow all;
default_type "text/plain";
autoindex on;
}
location / {
return 301 https://$host$request_uri;
}
}
# SSL configuration
server {
listen 443 ssl default_server;
listen [::]:443 ssl default_server;
server_name 202.nl84.seedit4.me;
ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem;
ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key;
include snippets/ssl-params.conf;
client_max_body_size 60512M;
server_tokens off;
root /srv/;
include /etc/nginx/apps/*.conf;
location ~ /\.ht {
deny all;
}
location /fancyindex {
}
}
and
upstream gitlab-workhorse {
server unix:/var/opt/gitlab/gitlab-workhorse/sockets/socket fail_timeout=0;
}
server {
access_log /var/log/nginx/gitlab.access.log;
error_log /var/log/nginx/gitlab.error.log;
listen 443 ssl;
listen [::]:443 ssl;
server_name gitlab.202.nl84.seedit4.me;
server_tokens off;
root /opt/gitlab/embedded/service/gitlab-rails/public;
ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem;
ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key;
include snippets/ssl-params.conf;
client_max_body_size 60512M;
location / {
client_max_body_size 0;
gzip off;
proxy_read_timeout 300;
proxy_connect_timeout 300;
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Ssl on;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://gitlab-workhorse;
}
}
when I access second site, gitlab.202.nl84.seedit4.me, I always get "bad gateway"
log files are empty