-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaction.yml
More file actions
39 lines (37 loc) · 1.23 KB
/
action.yml
File metadata and controls
39 lines (37 loc) · 1.23 KB
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
39
name: 'Cloudflare Access Proxy'
description: 'Start a local reverse proxy that injects Cloudflare Access headers'
branding:
icon: cloud
color: orange
inputs:
cf-access-client-id:
required: true
description: 'Cloudflare Access Client ID'
cf-access-client-secret:
required: true
description: 'Cloudflare Access Client Secret'
target-url:
required: true
description: 'The destination URL to proxy to (e.g., https://my-service.cloudflareaccess.com)'
listen-port:
required: false
description: 'The port that the proxy will listen on (default is 8080)'
runs:
using: 'composite'
steps:
- name: Setup Node
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
node-version: '24'
- name: Install NPM dependencies
run: npm ci
shell: bash
working-directory: ${{ github.action_path }}
- name: Start proxy in background
run: node ${{ github.action_path }}/src/proxy.js > proxy.log 2>&1 &
shell: bash
env:
CF_ACCESS_CLIENT_ID: ${{ inputs.cf-access-client-id }}
CF_ACCESS_CLIENT_SECRET: ${{ inputs.cf-access-client-secret }}
TARGET_URL: ${{ inputs.target-url }}
LISTEN_PORT: ${{ inputs.listen-port }}