-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf
38 lines (30 loc) · 908 Bytes
/
nginx.conf
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
events {
}
http {
include /etc/nginx/mime.types;
server {
listen 80;
root /usr/share/nginx/html;
gzip on;
gzip_disable "msie6";
location / {
index index.html index.html;
try_files $uri /index.html;
}
# BACKEND API CALLS
location /api {
proxy_pass http://backend:8080;
proxy_set_header Host $host;
}
# REDIRECT TO BACKEND IN ORDER TO AUTHORIZE (/oauth/login/{provider})
location /oauth/login {
proxy_pass http://backend:8080;
proxy_set_header Host $host;
}
# REDIRECT TO BACKEND IN ORDER TO REQUEST FOR TOKEN (/oauth/callback/{provider})
location /oauth/callback {
proxy_pass http://backend:8080;
proxy_set_header Host $host;
}
}
}