Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

No Format
##GLOBAL SSL
ssl_certificate /etc/ssl/certs/ssl-bundle.crt;
ssl_certificate_key /etc/ssl/private/server.key;

##Jira
server {
       listen         80;
       server_name    www.freesoftwareservers.com freesoftwareservers.com;

       return         301 https://$server_name/;

}

server {
        listen 443 ssl;
        server_name www.freesoftwareservers.com freesoftwareservers.com;

location / {

        proxy_pass              http://192.168.1.255:8081localhost:8090/;

        include                 /etc/nginx/proxy.conf;
    }
}

/etc/nginx/proxy.conf

No Format
cat << 'EOL'>/etc/nginx/proxy.conf
proxy_redirect          off;
proxy_set_header        Host            $host;
proxy_set_header        X-Real-IP       $remote_addr;
proxy_set_header        X-Forwarded-Server $host;
proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size    10m;
client_body_buffer_size 128k;
proxy_connect_timeout   90;
proxy_send_timeout      90;
proxy_read_timeout      90;
proxy_buffers           32 4k;
EOL

TomCat (Confluence) Config:

...