Skip to content

Commit 7ad82a3

Browse files
author
Anton Sannikov
committed
Added nginx settings for confluence
1 parent 83ba144 commit 7ad82a3

2 files changed

Lines changed: 53 additions & 0 deletions

File tree

DOCUMENTATION/content/documentation/index.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,6 +1044,7 @@ _Note: You can customize the port on which beanstalkd console is listening by ch
10441044

10451045
<br>
10461046
<a name="Use-Confluence"></a>
1047+
10471048
## Use Confluence
10481049

10491050
1 - Run the Confluence Container (`confluence`) with the `docker-compose up` command. Example:
@@ -1058,6 +1059,15 @@ docker-compose up -d confluence
10581059

10591060
You can set custom confluence version in `CONFLUENCE_VERSION`. [Find more info in section 'Versioning'](https://hub.docker.com/r/atlassian/confluence-server/)
10601061

1062+
1063+
##### Confluence usage with Nginx and SSL.
1064+
1065+
1. Find an instance configuration file in `nginx/sites/confluence.conf.example` and replace sample domain with yours.
1066+
1067+
2. Configure ssl keys to your domain.
1068+
1069+
Keep in mind that Confluence is still accessible on 8090 anyway.
1070+
10611071
<br>
10621072
<a name="Use-ElasticSearch"></a>
10631073
## Use ElasticSearch
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
server {
2+
listen 80;
3+
listen [::]:80;
4+
server_name www.confluence-domain.com;
5+
rewrite ^(.*) https://confluence-domain.com$1/ permanent;
6+
}
7+
8+
server {
9+
listen 80;
10+
listen [::]:80;
11+
server_name confluence-domain.com;
12+
rewrite ^(.*) https://confluence-domain.com/ permanent;
13+
}
14+
15+
server {
16+
listen 443 ssl;
17+
listen [::]:443 ssl;
18+
ssl_certificate /etc/nginx/ssl/confluence-domain.com.crt;
19+
ssl_certificate_key /etc/nginx/ssl/confluence-domain.com.key;
20+
21+
server_name confluence-domain.com;
22+
23+
location / {
24+
client_max_body_size 100m;
25+
proxy_set_header X-Forwarded-Host $host;
26+
proxy_set_header X-Forwarded-Server $host;
27+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
28+
proxy_pass http://confluence-domain.com:8090/;
29+
}
30+
31+
location /synchrony {
32+
proxy_set_header X-Forwarded-Host $host;
33+
proxy_set_header X-Forwarded-Server $host;
34+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
35+
proxy_pass http://confluence-domain.com:8090/synchrony-proxy;
36+
proxy_http_version 1.1;
37+
proxy_set_header Upgrade $http_upgrade;
38+
proxy_set_header Connection "Upgrade";
39+
}
40+
41+
error_log /var/log/nginx/bookchangerru_error.log;
42+
access_log /var/log/nginx/bookchangerru_access.log;
43+
}

0 commit comments

Comments
 (0)