Project

General

Profile

Demande #1046

définir http://jenkins.april.org/jenkins/

Added by Loïc Dachary over 9 years ago. Updated over 9 years ago.

Status:
Fermé
Priority:
Normale
Assignee:
Category:
Task
Target version:
Start date:
11/21/2012
Due date:
11/28/2012
% Done:

100%

Estimated time:
1.00 h
Spent time:
Difficulté:
2 Facile

Description

  • activer l'authentification des utilisateurs sur jenkins.vm.april-int pour éviter de permettre a tout le monde de définir des jobs
  • définir jenkins.april.org dans le DNS
  • configurer nginx pour reverse proxy jenkins.april.org sur jenkins.vm.april-int

History

#1

Updated by Loïc Dachary over 9 years ago

  • % Done changed from 30 to 60
commit 27e165c97e195c7d702e06a95aed3fca5cc16caa
Author: Loic Dachary <loic@dachary.org>
Date:   Thu Nov 22 14:18:58 2012 +0100

    definition de jenkins.april.org https://agir.april.org/issues/1046 qui est un cname de pavot mais qu

diff --git a/bind/zones/masters/april.org b/bind/zones/masters/april.org
index 334dd87..5f407b4 100644
--- a/bind/zones/masters/april.org
+++ b/bind/zones/masters/april.org
@@ -63,6 +63,7 @@ gdtc-dev              IN      CNAME   ns1
 gnu                    IN      CNAME   ns1
 gpt                    IN      CNAME   ns1
 informatiquedeloyale   IN      CNAME   ns1
+jenkins      IN  CNAME   pavot
 kandidatenbe           IN      CNAME   ns1
 ;lists                 IN      CNAME   ns1
 lsd                    IN      CNAME   ns1
#2

Updated by Loïc Dachary over 9 years ago

  • Subject changed from définir jenkins.april.org to définir http://jenkins.april.org/jenkins/
  • Status changed from Nouveau to Fermé
  • % Done changed from 60 to 100
commit 15f2c11f637580a7103cc975ddc212da28c351ff
Author: Loic Dachary <loic@dachary.org>
Date:   Thu Nov 22 14:42:56 2012 +0100

    le port jenkins est 8080

diff --git a/nginx/sites-available/jenkins.april.org b/nginx/sites-available/jenkins.april.org
index b188212..c3cd8f7 100644
--- a/nginx/sites-available/jenkins.april.org
+++ b/nginx/sites-available/jenkins.april.org
@@ -3,7 +3,7 @@ server {
        server_name     jenkins.april.org;
        access_log      /var/log/nginx/jenkins.april.org/jenkins.april.org.access_log;
        location / {
-               proxy_pass   http://jenkins.vm.april-int;
+               proxy_pass   http://jenkins.vm.april-int:8080;
        }
 }

@@ -20,6 +20,6 @@ server {
                proxy_set_header        Host $http_host;
                proxy_redirect          off;
                proxy_max_temp_file_size 0;
-               proxy_pass              http://jenkins.vm.april-int/;
+               proxy_pass              http://jenkins.vm.april-int:8080/;
        }
 }

commit a63ff32967cdd28af288b014171f417238ad927a
Author: Loic Dachary <loic@dachary.org>
Date:   Thu Nov 22 14:40:07 2012 +0100

    Definition du reverse proxy jenkins.april.org => jenkins.vm.april-int

diff --git a/nginx/sites-available/jenkins.april.org b/nginx/sites-available/jenkins.april.org
new file mode 100644
index 0000000..b188212
--- /dev/null
+++ b/nginx/sites-available/jenkins.april.org
@@ -0,0 +1,25 @@
+server {
+       listen          192.168.2.10:80;
+       server_name     jenkins.april.org;
+       access_log      /var/log/nginx/jenkins.april.org/jenkins.april.org.access_log;
+       location / {
+               proxy_pass   http://jenkins.vm.april-int;
+       }
+}
+
+
+
+server {
+       listen          192.168.2.10:443;
+       server_name     jenkins.april.org;
+       access_log      /var/log/nginx/jenkins.april.org/jenkins.april.org.access_log;
+       ssl             on;
+       location / {
+               proxy_set_header        X_FORWARDED_PROTO https;
+               proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
+               proxy_set_header        Host $http_host;
+               proxy_redirect          off;
+               proxy_max_temp_file_size 0;
+               proxy_pass              http://jenkins.vm.april-int/;
+       }
+}

Also available in: Atom PDF