Skip to content

Commit

Permalink
Add trace (#197)
Browse files Browse the repository at this point in the history
* Add trace

* Fix bug

* Push to hangzhou region by default
  • Loading branch information
moria97 authored Sep 5, 2024
1 parent 0a90ee6 commit b81cd6c
Show file tree
Hide file tree
Showing 12 changed files with 1,270 additions and 692 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
env:
REGISTRY: registry.cn-beijing.aliyuncs.com
REGISTRY: registry.cn-hangzhou.aliyuncs.com

# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
jobs:
Expand Down Expand Up @@ -36,7 +36,7 @@ jobs:
echo "VERSION_TAG=$VERSION_TAG" >> $GITHUB_ENV
# Uses the `docker/login-action` action to log in to the Container registry registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here.
- name: Login to ACR Beijing region
- name: Login to ACR Hangzhou region
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
Expand Down
10 changes: 8 additions & 2 deletions nginx/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,19 @@ server {
location /service {
proxy_set_header Host \$host;
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:8001;
proxy_pass http://127.0.0.1:8001/service;
}

location /docs {
proxy_set_header Host \$host;
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:8001;
proxy_pass http://127.0.0.1:8001/docs;
}

location /traces {
proxy_set_header Host \$host;
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:6006;
}

#error_page 404 /404.html;
Expand Down
Loading

0 comments on commit b81cd6c

Please sign in to comment.