-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclient.conf
More file actions
24 lines (23 loc) · 886 Bytes
/
client.conf
File metadata and controls
24 lines (23 loc) · 886 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
server {
listen *:443 ssl http2;
root /Users/henrik/dev/web/tobias/client/dist;
server_name tobias.dev;
auth_basic "NewBias: henrik(hund)";
auth_basic_user_file /Users/henrik/dev/web/tobias/misc/.htpasswd;
ssl_certificate /Users/henrik/dev/web/tobias/tobias.dev.pem;
ssl_certificate_key /Users/henrik/dev/web/tobias/tobias.dev-key.pem;
location /api/{
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
proxy_pass http://localhost:3311/api/;
}
location /{
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
proxy_pass http://localhost:3000/;
}
}