Skip to content

Commit 119a92e

Browse files
authored
Merge pull request #15820 from github/repo-sync
repo sync
2 parents 82cafa0 + 886c81b commit 119a92e

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/azure-preview-env-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ permissions:
3434

3535
# This allows one deploy workflow to interrupt another
3636
concurrency:
37-
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label }}'
37+
group: 'preview-env @ ${{ github.head_ref || github.run_id }}'
3838
cancel-in-progress: true
3939

4040
jobs:

.github/workflows/azure-preview-env-destroy.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ on:
1919
permissions:
2020
contents: read
2121

22+
# This allows one deploy workflow to interrupt another
23+
concurrency:
24+
group: 'preview-env @ ${{ github.head_ref || github.run_id }}'
25+
cancel-in-progress: true
26+
2227
jobs:
2328
destory-azure-preview-env:
2429
name: Destroy

middleware/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const asyncMiddleware = (fn) => (req, res, next) => {
7676
}
7777

7878
// The IP address that Fastly regards as the true client making the request w/ fallback to req.ip
79-
morgan.token('client-ip', (req) => req.headers['Fastly-Client-IP'] || req.ip)
79+
morgan.token('client-ip', (req) => req.headers['fastly-client-ip'] || req.ip)
8080
const productionLogFormat = `:client-ip - ":method :url" :status - :response-time ms`
8181

8282
export default function (app) {

0 commit comments

Comments
 (0)