-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from PocketRelay/dev
Combining branches
- Loading branch information
Showing
50 changed files
with
2,823 additions
and
1,624 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
data | ||
server.crt | ||
server.key | ||
client.crt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"port": 80, | ||
"reverse_proxy": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
version: "3" | ||
services: | ||
server: | ||
restart: unless-stopped | ||
container_name: pocket-relay | ||
image: jacobtread/pocket-relay:latest | ||
volumes: | ||
# Bind the server config to a local config.json file | ||
- ./config.json:/app/config.json | ||
# Binding the server data to a local data folder | ||
- ./data:/app/data | ||
nginx: | ||
restart: unless-stopped | ||
image: nginx | ||
ports: | ||
- "443:443/tcp" | ||
volumes: | ||
- ./nginx.conf:/etc/nginx/nginx.conf:ro | ||
- ./client.crt:/etc/nginx/client.crt:ro | ||
- ./server.crt:/etc/nginx/server.crt:ro | ||
- ./server.key:/etc/nginx/server.key:ro | ||
depends_on: | ||
- server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
events {} | ||
|
||
http { | ||
server { | ||
listen 443 ssl; | ||
|
||
server_name localhost; | ||
|
||
ssl_certificate /etc/nginx/server.crt; | ||
ssl_certificate_key /etc/nginx/server.key; | ||
|
||
ssl_client_certificate /etc/nginx/client.crt; | ||
ssl_verify_client on; | ||
|
||
|
||
location / { | ||
proxy_pass http://server:80; | ||
|
||
# Provide server with real IP address of clients | ||
proxy_set_header X-Real-IP $remote_addr; | ||
|
||
# Upgrade websocket connections | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection "upgrade"; | ||
proxy_http_version 1.1; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.