1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
server {
listen 80; ## listen for ipv4; this line is default and implied
server_name jenkins.test.fr;
access_log /var/log/nginx/http-jenkins-access.log;
error_log /var/log/nginx/http-jenkins-error.log;
location / {
proxy_pass http://192.168.0.102:8080;
#proxy_redirect http://192.168.0.102:8080 $scheme://jenkins.test.fr;
}
location /nginx_status {
stub_status on;
access_log off;
allow 127.0.0.1;
deny all;
}
}
server {
listen 443;
server_name jenkins.test.fr;
access_log /var/log/nginx/https-jenkins-access.log;
error_log /var/log/nginx/https-jenkins-error.log;
ssl on;
ssl_certificate /etc/ssl/nginx/jenkins-ssl-unified.crt;
ssl_certificate_key /etc/ssl/nginx/jenkins-ssl.key;
ssl_session_timeout 5m;
ssl_protocols SSLv3 TLSv1;
ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP;
ssl_prefer_server_ciphers on;
location ^~ / {
proxy_pass http://192.168.0.102:8080;
#proxy_redirect http:// https://;
#proxy_redirect http://192.168.0.102:8080 $scheme://jenkins.test.fr;
}
} |
Partager