Untitled
unknown
plain_text
3 years ago
1.6 kB
9
Indexable
server {
listen 80;
server_name gitlab.idevices.de www.gitlab.idevices.de gitlab-eta-plus.com www.gitlab.eta-plus.com;
#return 301 https://gitlab.eta-plus.com$request_uri;
return 301 https://gitlab.idevices.de$request_uri;
}
server {
listen 443 ssl;
# server_name gitlab.idevices.de gitlab.eta-plus.com;
server_name gitlab.idevices.de;
ssl_certificate /etc/acme/cert-home/*.idevices.de/fullchain.cer;
ssl_certificate_key /etc/acme/cert-home/*.idevices.de/*.idevices.de.key;
ssl on;
ssl_session_cache builtin:1000 shared:SSL:10m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4;
ssl_prefer_server_ciphers on;
access_log /var/log/nginx/gitlab.access.log;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# Fix the “It appears that your reverse proxy set up is broken" error.
proxy_pass http://127.0.0.1:8181;
proxy_read_timeout 90;
# proxy_redirect http://127.0.0.1:8181 https://gitlab.eta-plus.com;
proxy_redirect http://127.0.0.1:8181 https://gitlab.idevices.de;
}
location /nginx_status {
stub_status on;
access_log on;
allow 127.0.0.1;
#deny all;
}
}
server {
listen 443 ssl;
server_name gitlab.eta-plus.com;
return 301 https://gitlab.idevices.de$request_uri;
}
Editor is loading...