-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsyncstorage-rs-example.conf
More file actions
36 lines (29 loc) · 938 Bytes
/
syncstorage-rs-example.conf
File metadata and controls
36 lines (29 loc) · 938 Bytes
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
server {
if ($host = firefox-sync.example.com) {
return 301 https://$host$request_uri;
}
listen 80;
listen [::]:80;
server_name firefox-sync.example.com;
access_log /var/log/nginx/firefox-sync.example.com-access.log;
error_log /var/log/nginx/firefox-sync.example.com-error.log;
}
server {
listen 443 ssl;
listen [::]:443 ssl;
http2 on;
server_name firefox-sync.example.com;
location / {
proxy_pass http://localhost:<CONTAINER_EXPORT_PORT>;
proxy_set_header Host $http_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-Proto $scheme;
proxy_redirect off;
proxy_read_timeout 120;
proxy_connect_timeout 10;
gzip off;
}
ssl_certificate /etc/letsencrypt/live/firefox-sync.example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/firefox-sync.example.com/privkey.pem;
}