-
-
Save laurengarcia/c473189c6ec81a011930cd77197a940c to your computer and use it in GitHub Desktop.
Mesh Example with certbot
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
upstream meshws { | |
server mesh:60559; | |
} | |
server { | |
listen 443 ssl; | |
server_name ${SERVERNAME}; | |
ssl_certificate /etc/letsencrypt/live/${SERVERNAME}/fullchain.pem; | |
ssl_certificate_key /etc/letsencrypt/live/${SERVERNAME}/privkey.pem; | |
location / { | |
proxy_pass http://meshws; | |
proxy_redirect off; | |
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-Host $server_name; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection "Upgrade"; | |
} | |
} |
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
version: '3' | |
networks: | |
meshnet: | |
services: | |
nginx: | |
image: staticfloat/nginx-certbot | |
networks: | |
- meshnet | |
volumes: | |
- ./nginx.conf:/etc/nginx/user.conf.d/nginx.conf | |
- ./certsfolder:/etc/letsencrypt" | |
restart_policy: on-failure | |
ports: | |
- "80:80" | |
- "443:443" | |
environment: | |
- CERTBOT_EMAIL=your@email.org | |
- ENVSUBST_VARS=SERVERNAME | |
- SERVERNAME=your.mesh.address.com | |
mesh: | |
image: 0xorg/mesh:latest | |
restart: always | |
volumes: | |
- /root/data:/usr/mesh/0x_mesh | |
networks: | |
- meshnet | |
ports: | |
- '60558:60558' | |
- '60559:60559' | |
environment: | |
- VERBOSITY=5 | |
- ETHEREUM_CHAIN_ID=1 | |
- ETHEREUM_RPC_URL= | |
- BLOCK_POLLING_INTERVAL=5s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment