Skip to content
This repository was archived by the owner on Mar 25, 2022. It is now read-only.

Commit adc3cf3

Browse files
author
Lars Gierth
committed
jenkins: redirect http to https
License: MIT Signed-off-by: Lars Gierth <[email protected]>
1 parent fdba5e3 commit adc3cf3

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

ci/jenkins/nginx.conf.tpl

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
server {
22
server_name ci.ipfs.team;
33
access_log /var/log/nginx/access.log mtail;
4-
listen 80;
5-
listen [::]:80;
64
75
listen 443 default_server ssl;
86
listen [::]:443 default_server ssl;
@@ -21,6 +19,14 @@ server {
2119
}
2220
}
2321

22+
server {
23+
server_name ci.ipfs.team;
24+
listen 80;
25+
listen [::]:80;
26+
27+
return 301 https://\$server_name\$request_uri;
28+
}
29+
2430
server {
2531
access_log /var/log/nginx/access.log mtail;
2632
listen [$(var cjdns_ipv6)]:8090;

0 commit comments

Comments
 (0)