-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.conf
More file actions
28 lines (25 loc) · 678 Bytes
/
default.conf
File metadata and controls
28 lines (25 loc) · 678 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
server {
listen 80;
listen [::]:80;
server_name geolocation-api.1by2.online;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
listen [::]:443 ssl;
ssl_sertificate /etc/nginx/ssl/wild.1by2.online.cer;
ssl_certificate_key /etc/nginx/ssl/wild.1by2.online.key;
server_name geolocation-api.1by2.online;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwareded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://geo-api;
}
}
upstream geo-api {
server geo-api-1:8080;
server geo-api-2:8080;
server geo-api-3:8080;
}