diff --git a/cockpit/InstallCockpit.sh b/cockpit/InstallCockpit.sh new file mode 100755 index 0000000..93e6f70 --- /dev/null +++ b/cockpit/InstallCockpit.sh @@ -0,0 +1,15 @@ +#!/bin/bash + + +sudo apt-get install docker +sudo apt-get install cockpit cockpit-ws cockpit-docker cockpit-bridge + + +sudo apt-get install nginx +sudo cp cockpit.conf /etc/nginx/sites-available/ +sudo ln -s /etc/nginx/sites-available/cockpit.conf /etc/nginx/sites-enabled/ +sudo nginx -t +sudo systemctl restart nginx + +echo -e "\n127.0.0.1 cockpit.localdomain\n" | sudo tee -a /etc/hosts + diff --git a/cockpit/InstallCockpit.sh b/cockpit/InstallCockpit.sh new file mode 100755 index 0000000..93e6f70 --- /dev/null +++ b/cockpit/InstallCockpit.sh @@ -0,0 +1,15 @@ +#!/bin/bash + + +sudo apt-get install docker +sudo apt-get install cockpit cockpit-ws cockpit-docker cockpit-bridge + + +sudo apt-get install nginx +sudo cp cockpit.conf /etc/nginx/sites-available/ +sudo ln -s /etc/nginx/sites-available/cockpit.conf /etc/nginx/sites-enabled/ +sudo nginx -t +sudo systemctl restart nginx + +echo -e "\n127.0.0.1 cockpit.localdomain\n" | sudo tee -a /etc/hosts + diff --git a/cockpit/cockpit.conf b/cockpit/cockpit.conf new file mode 100644 index 0000000..39a883c --- /dev/null +++ b/cockpit/cockpit.conf @@ -0,0 +1,28 @@ + +upstream cockpit { + server 127.0.0.1:9090 weight=100 max_fails=5 fail_timeout=5; +} + +server { + listen 80; + listen 443 ssl; + server_name cockpit.localdomain; + + location / { + # Required to proxy the connection to Cockpit + proxy_pass http://127.0.0.1:9090; + proxy_set_header Host $host; + proxy_set_header X-Forwarded-Proto $scheme; + + # Required for web sockets to function + proxy_http_version 1.1; + proxy_buffering off; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + + # Pass ETag header from Cockpit to clients. + # See: https://github.com/cockpit-project/cockpit/issues/5239 + gzip off; + } +} + diff --git a/cockpit/InstallCockpit.sh b/cockpit/InstallCockpit.sh new file mode 100755 index 0000000..93e6f70 --- /dev/null +++ b/cockpit/InstallCockpit.sh @@ -0,0 +1,15 @@ +#!/bin/bash + + +sudo apt-get install docker +sudo apt-get install cockpit cockpit-ws cockpit-docker cockpit-bridge + + +sudo apt-get install nginx +sudo cp cockpit.conf /etc/nginx/sites-available/ +sudo ln -s /etc/nginx/sites-available/cockpit.conf /etc/nginx/sites-enabled/ +sudo nginx -t +sudo systemctl restart nginx + +echo -e "\n127.0.0.1 cockpit.localdomain\n" | sudo tee -a /etc/hosts + diff --git a/cockpit/cockpit.conf b/cockpit/cockpit.conf new file mode 100644 index 0000000..39a883c --- /dev/null +++ b/cockpit/cockpit.conf @@ -0,0 +1,28 @@ + +upstream cockpit { + server 127.0.0.1:9090 weight=100 max_fails=5 fail_timeout=5; +} + +server { + listen 80; + listen 443 ssl; + server_name cockpit.localdomain; + + location / { + # Required to proxy the connection to Cockpit + proxy_pass http://127.0.0.1:9090; + proxy_set_header Host $host; + proxy_set_header X-Forwarded-Proto $scheme; + + # Required for web sockets to function + proxy_http_version 1.1; + proxy_buffering off; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + + # Pass ETag header from Cockpit to clients. + # See: https://github.com/cockpit-project/cockpit/issues/5239 + gzip off; + } +} + diff --git a/gitbucket/gitbucket.conf b/gitbucket/gitbucket.conf new file mode 100644 index 0000000..0a347e9 --- /dev/null +++ b/gitbucket/gitbucket.conf @@ -0,0 +1,22 @@ + +upstream gitbucket { + server 127.0.0.1:8090 weight=100 max_fails=5 fail_timeout=5; +} + +server { + listen 80; + listen 443 ssl; + server_name gitbucket.localdomain; + ssl_certificate /etc/nginx/ssl/gitbucket.crt; + ssl_certificate_key /etc/nginx/ssl/gitbucket.key; + + client_max_body_size 200m; + + location / { + proxy_set_header X-Forwarded-Host $host; + proxy_set_header X-Forwarded-Server $host; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_pass http://gitbucket/; + } +} + diff --git a/cockpit/InstallCockpit.sh b/cockpit/InstallCockpit.sh new file mode 100755 index 0000000..93e6f70 --- /dev/null +++ b/cockpit/InstallCockpit.sh @@ -0,0 +1,15 @@ +#!/bin/bash + + +sudo apt-get install docker +sudo apt-get install cockpit cockpit-ws cockpit-docker cockpit-bridge + + +sudo apt-get install nginx +sudo cp cockpit.conf /etc/nginx/sites-available/ +sudo ln -s /etc/nginx/sites-available/cockpit.conf /etc/nginx/sites-enabled/ +sudo nginx -t +sudo systemctl restart nginx + +echo -e "\n127.0.0.1 cockpit.localdomain\n" | sudo tee -a /etc/hosts + diff --git a/cockpit/cockpit.conf b/cockpit/cockpit.conf new file mode 100644 index 0000000..39a883c --- /dev/null +++ b/cockpit/cockpit.conf @@ -0,0 +1,28 @@ + +upstream cockpit { + server 127.0.0.1:9090 weight=100 max_fails=5 fail_timeout=5; +} + +server { + listen 80; + listen 443 ssl; + server_name cockpit.localdomain; + + location / { + # Required to proxy the connection to Cockpit + proxy_pass http://127.0.0.1:9090; + proxy_set_header Host $host; + proxy_set_header X-Forwarded-Proto $scheme; + + # Required for web sockets to function + proxy_http_version 1.1; + proxy_buffering off; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + + # Pass ETag header from Cockpit to clients. + # See: https://github.com/cockpit-project/cockpit/issues/5239 + gzip off; + } +} + diff --git a/gitbucket/gitbucket.conf b/gitbucket/gitbucket.conf new file mode 100644 index 0000000..0a347e9 --- /dev/null +++ b/gitbucket/gitbucket.conf @@ -0,0 +1,22 @@ + +upstream gitbucket { + server 127.0.0.1:8090 weight=100 max_fails=5 fail_timeout=5; +} + +server { + listen 80; + listen 443 ssl; + server_name gitbucket.localdomain; + ssl_certificate /etc/nginx/ssl/gitbucket.crt; + ssl_certificate_key /etc/nginx/ssl/gitbucket.key; + + client_max_body_size 200m; + + location / { + proxy_set_header X-Forwarded-Host $host; + proxy_set_header X-Forwarded-Server $host; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_pass http://gitbucket/; + } +} + diff --git a/jenkins/InstallJenkins.sh b/jenkins/InstallJenkins.sh index 41bf42c..39580be 100755 --- a/jenkins/InstallJenkins.sh +++ b/jenkins/InstallJenkins.sh @@ -4,6 +4,11 @@ sudo apt-get install jenkins +# Allow jenkins server to be able to communicate with docker server +sudo apt-get install docker +sudo usermod -aG docker jenkins + + sudo cp jenkins.service /etc/systemd/system/jenkins.service sudo systemctl enable jenkins.service sudo systemctl start jenkins.service