classes:install_confluence_671_bin
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
classes:install_confluence_671_bin [2018/02/14 12:49] – [Install Confluence 6.7.1 from Binary Installer] curry_searle | classes:install_confluence_671_bin [2018/03/02 09:31] (current) – [Install Confluence 6.7.1 from Binary Installer] curry_searle | ||
---|---|---|---|
Line 1: | Line 1: | ||
==== Install Confluence 6.7.1 from Binary Installer ==== | ==== Install Confluence 6.7.1 from Binary Installer ==== | ||
- | This tutorial assumes you downloaded the Linux binary installer for Confluence 6.7.1, you have sudo capabilities on an AWS EC2 "free tier" instance along with an AWS RDS "free tier" database of the mysql variety. | + | ===Assumptions=== |
+ | This tutorial assumes you downloaded the Linux binary installer for Confluence 6.7.1, you have sudo capabilities on an AWS EC2 "free tier" instance along with an AWS RDS "free tier" database of the mysql variety. | ||
+ | * Host: ec2-01.amzn.openspeak.net | ||
+ | * RDS: yourRDSinstance.c8abc12tntuk.us-east-1.rds.amazonaws.com | ||
+ | |||
+ | ===Install Confluence=== | ||
Run the installer as root: | Run the installer as root: | ||
< | < | ||
Line 79: | Line 84: | ||
</ | </ | ||
+ | ===Install Nginx Reverse Proxy with SSL=== | ||
At this point we will configure Nginx as a reverse proxy before finalizing the Confluence installation via the web page. | At this point we will configure Nginx as a reverse proxy before finalizing the Confluence installation via the web page. | ||
Line 86: | Line 92: | ||
</ | </ | ||
+ | Generate a self-signed SSL certificate: | ||
+ | < | ||
+ | sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout / | ||
+ | </ | ||
+ | |||
+ | The output should look something like this as you answer the various questions: | ||
+ | < | ||
+ | Generating a 2048 bit RSA private key | ||
+ | ............+++ | ||
+ | ..........................................+++ | ||
+ | writing new private key to '/ | ||
+ | ----- | ||
+ | You are about to be asked to enter information that will be incorporated | ||
+ | into your certificate request. | ||
+ | What you are about to enter is what is called a Distinguished Name or a DN. | ||
+ | There are quite a few fields but you can leave some blank | ||
+ | For some fields there will be a default value, | ||
+ | If you enter ' | ||
+ | ----- | ||
+ | Country Name (2 letter code) [AU]:US | ||
+ | State or Province Name (full name) [Some-State]: | ||
+ | Locality Name (eg, city) []:Denton | ||
+ | Organization Name (eg, company) [Internet Widgits Pty Ltd]: | ||
+ | Organizational Unit Name (eg, section) []: | ||
+ | Common Name (e.g. server FQDN or YOUR name) []: | ||
+ | Email Address []: | ||
+ | </ | ||
+ | |||
+ | Generate the '' | ||
+ | < | ||
+ | sudo openssl dhparam -out / | ||
+ | </ | ||
+ | |||
+ | Edit ''/ | ||
+ | < | ||
+ | sudo vi / | ||
+ | </ | ||
+ | to contain the following: | ||
+ | < | ||
+ | ssl_certificate / | ||
+ | ssl_certificate_key / | ||
+ | </ | ||
+ | |||
+ | Edit ''/ | ||
+ | < | ||
+ | sudo vi / | ||
+ | </ | ||
+ | to include the following: | ||
+ | < | ||
+ | # from https:// | ||
+ | # and https:// | ||
+ | ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | ||
+ | ssl_prefer_server_ciphers on; | ||
+ | ssl_ciphers " | ||
+ | ssl_ecdh_curve secp384r1; | ||
+ | ssl_session_cache shared: | ||
+ | ssl_session_tickets off; | ||
+ | ssl_stapling on; | ||
+ | ssl_stapling_verify on; | ||
+ | resolver 8.8.8.8 8.8.4.4 valid=300s; | ||
+ | resolver_timeout 5s; | ||
+ | # Disable preloading HSTS for now. You can use the commented out header line that includes | ||
+ | # the " | ||
+ | #add_header Strict-Transport-Security " | ||
+ | add_header Strict-Transport-Security " | ||
+ | add_header X-Frame-Options DENY; | ||
+ | add_header X-Content-Type-Options nosniff; | ||
+ | |||
+ | ssl_dhparam / | ||
+ | </ | ||
+ | |||
+ | Backup the default Nginx configuration file: | ||
+ | < | ||
+ | sudo cp / | ||
+ | </ | ||
+ | |||
+ | Edit ''/ | ||
+ | < | ||
+ | sudo vi / | ||
+ | </ | ||
+ | to include the following text, adjusted to match your DNS hostname: | ||
+ | < | ||
+ | server { | ||
+ | listen ec2-01.amzn.openspeak.net: | ||
+ | server_name ec2-01.amzn.openspeak.net; | ||
+ | |||
+ | listen 443 ssl http2 default_server; | ||
+ | listen [::]:443 ssl http2 default_server; | ||
+ | |||
+ | include snippets/ | ||
+ | include snippets/ | ||
+ | include snippets/ | ||
+ | |||
+ | #return 301 https:// | ||
+ | proxy_redirect http:// https://; | ||
+ | |||
+ | client_max_body_size 2048M; | ||
+ | |||
+ | 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:// | ||
+ | } | ||
+ | |||
+ | } | ||
+ | </ | ||
+ | |||
+ | ===Configure Confluence to Recognize the Proxy=== | ||
+ | Backup and edit the '' | ||
+ | < | ||
+ | sudo cp / | ||
+ | sudo vi / | ||
+ | </ | ||
+ | |||
+ | to include the following change; specifically the last line of the block containing the '' | ||
+ | < | ||
+ | < | ||
+ | maxThreads=" | ||
+ | enableLookups=" | ||
+ | protocol=" | ||
+ | proxyName=" | ||
+ | /> | ||
+ | </ | ||
+ | |||
+ | ===Restart Services=== | ||
+ | Restart Nginx & Confluence: | ||
+ | < | ||
+ | sudo service nginx restart | ||
+ | sudo service confluence restart | ||
+ | </ | ||
=====Resources===== | =====Resources===== | ||
* [[https:// | * [[https:// |
classes/install_confluence_671_bin.1518641368.txt.gz · Last modified: 2018/02/14 12:49 by curry_searle