-
Notifications
You must be signed in to change notification settings - Fork 5
Setup Nginx on Google Cloud
Faisal Ali Rabbani edited this page May 16, 2015
·
23 revisions
-
Update apt
sudo apt-get update ```
-
Install nginx
sudo apt-get install nginx ```
- Get SSL-Certificate from provider.
- Save .key and .pem in server
- ex:
/etc/nginx/ssl
- ex:
- Add a new virtual host or edit default
- vim
/etc/nginx/sites-available/default - Redirect http traffic to https
```
server { listen 80; return 301 https://$host$request_uri; } ```
- Setup Jenkins on Google Cloud
- [Save a Jenkins VM image](Save a Jenkins VM image)
- [Load Jenkins Instance from Image](Load Jenkins Instance from Image)
- [Save a Node VM image](Save a Node VM image)
- [Load a VM from image](Load a VM from image)
- [Setup Nginx on Google Cloud](Setup Nginx on Google Cloud)
- Jenkins Job: Build and Deploy App locally
- Jenkins Job: Build and Deploy App remotely
- TBD