-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
114 additions
and
56 deletions.
There are no files selected for viewing
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,26 @@ | ||
services: | ||
nginx: | ||
image: nginx:alpine | ||
environment: | ||
- TZ=Europe/Paris | ||
ports: | ||
- 80:80 | ||
volumes: | ||
- ./nginx.conf:/etc/nginx/conf.d/default.conf | ||
|
||
contmi-client: | ||
# image: ghcr.io/matmut7/contmi/client:latest | ||
build: | ||
context: ../ | ||
dockerfile: ./packages/client/Dockerfile | ||
|
||
contmi-server: | ||
# image: ghcr.io/matmut7/contmi/server:latest | ||
build: | ||
context: ../ | ||
dockerfile: ./packages/server/Dockerfile | ||
volumes: | ||
- contmi:/app/packages/server/dbs | ||
|
||
volumes: | ||
contmi: |
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,32 @@ | ||
resolver 127.0.0.11 valid=1s ipv6=off; | ||
|
||
server { | ||
server_name _; | ||
listen 80 default_server; | ||
|
||
location / { | ||
set $contmi_client contmi-client; | ||
proxy_pass http://$contmi_client:80; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
} | ||
|
||
location /sync { | ||
set $contmi_server contmi-server; | ||
proxy_pass http://$contmi_server:3000; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
proxy_set_header Connection ''; | ||
proxy_http_version 1.1; | ||
chunked_transfer_encoding off; | ||
proxy_buffering off; | ||
proxy_cache off; | ||
} | ||
|
||
|
||
} | ||
|
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export function useDbId() { | ||
return "test"; | ||
return "2A6FBCD93EACD7F1"; | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.