File size: 1,164 Bytes
bafb6c9 |
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 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# Cloudflare Pages Proxy Docker Container
This Docker container sets up an Nginx server that proxies requests to your Cloudflare Pages site (https://sheer-8kp.pages.dev/) and makes it available on port 7860.
## Requirements
- Docker installed on your system
- Internet access to reach the Cloudflare Pages site
## Building the Docker Image
To build the Docker image, navigate to the directory containing the Dockerfile and run:
```bash
docker build -t cloudflare-proxy .
```
## Running the Docker Container
To start the container:
```bash
docker run -d -p 7860:7860 --name cloudflare-proxy-container cloudflare-proxy
```
After running this command, you can access your Cloudflare Pages site at:
```
http://localhost:7860
```
## Stopping the Container
To stop the running container:
```bash
docker stop cloudflare-proxy-container
```
## Removing the Container
To remove the container:
```bash
docker rm cloudflare-proxy-container
```
## Technical Details
- The container uses Nginx as a reverse proxy
- Traffic is forwarded to https://sheer-8kp.pages.dev/
- Appropriate headers are set to ensure proper proxying
- The container runs on port 7860 |