2023-02-27 06:46:31 +08:00
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
server_name localhost;
|
2021-01-06 19:52:14 +08:00
|
|
|
|
|
|
|
|
2023-02-27 06:46:31 +08:00
|
|
|
location ~* /(api)/ {
|
|
|
|
proxy_pass http://felicity_be:8000;
|
2021-01-06 19:52:14 +08:00
|
|
|
proxy_set_header Host $http_host;
|
|
|
|
proxy_set_header X-Forwarded-Host $host;
|
|
|
|
}
|
2023-02-27 06:46:31 +08:00
|
|
|
|
|
|
|
location ~* /(docs) {
|
|
|
|
rewrite ^/docs/(.*) /$1 break;
|
|
|
|
proxy_pass http://felicity_be:8000;
|
2021-01-06 19:52:14 +08:00
|
|
|
proxy_set_header Host $http_host;
|
|
|
|
proxy_set_header X-Forwarded-Host $host;
|
|
|
|
}
|
2023-02-27 06:46:31 +08:00
|
|
|
|
|
|
|
location ~* /(redoc) {
|
|
|
|
rewrite ^/redoc/(.*) /$1 break;
|
|
|
|
proxy_pass http://felicity_be:8000;
|
|
|
|
proxy_set_header Host $http_host;
|
|
|
|
proxy_set_header X-Forwarded-Host $host;
|
|
|
|
}
|
|
|
|
|
|
|
|
location ~* /(felicity-gql) {
|
|
|
|
rewrite ^/felicity-gql/(.*) /$1 break;
|
|
|
|
proxy_pass http://felicity_be:8000;
|
|
|
|
proxy_set_header Host $http_host;
|
|
|
|
proxy_set_header X-Forwarded-Host $host;
|
|
|
|
}
|
|
|
|
|
|
|
|
location / {
|
|
|
|
rewrite ^/(.*) /$1 break;
|
|
|
|
proxy_pass http://felicity_fe:3000;
|
|
|
|
proxy_set_header Host $http_host;
|
|
|
|
proxy_set_header X-Forwarded-Host $host;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|