forked from eeditiones/teipublisher-docker-compose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.com.tmpl
62 lines (51 loc) · 1.92 KB
/
example.com.tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Configuration for TEI Publisher with virtual host and SSL
# change name of upstream server below to something unique
upstream docker-publisher {
server publisher:8080 fail_timeout=0;
}
server {
listen 80;
listen [::]:80;
server_name example.com;
server_tokens off;
# Required by letsencrypt certbot to acquire certificate
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
location / {
return 301 https://example.com$request_uri;
}
}
# Comment in the following section after acquiring an SSL certificate and make the required changes as
# indicated below
# server {
# listen 443 ssl;
# listen [::]:443 ssl;
# server_name example.com;
# ssl_certificate /etc/nginx/ssl/live/example.com/fullchain.pem;
# ssl_certificate_key /etc/nginx/ssl/live/example.com/privkey.pem;
# location / {
# # change upstream server placeholder 'docker-publisher' below to what you configured above for upstream
# proxy_pass http://docker-publisher/exist/apps/tei-publisher$request_uri;
# proxy_redirect http://$host/exist/apps/tei-publisher/ /;
# proxy_set_header Host $host;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# proxy_set_header X-Forwarded-Host $server_name;
# proxy_ssl_server_name on;
# proxy_cookie_path /exist /;
# client_max_body_size 512m;
# }
# location /apps/eXide {
# # change upstream server placeholder 'docker-publisher' below to what you configured above for upstream
# proxy_pass http://docker-publisher/exist$request_uri;
# proxy_redirect off;
# proxy_set_header Host $host;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# proxy_set_header X-Forwarded-Host $server_name;
# proxy_ssl_server_name on;
# proxy_cookie_path /exist /;
# client_max_body_size 512m;
# }
# }