Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ docker logs mq
- Starting MQ...
- 1669917002: mosquitto version 2.0.15 starting
- 1669917002: Config loaded from /mosquitto/config/mosquitto.conf.
- 1669917002: Loading plugin: /usr/lib/mosquitto_dynamic_security.so
- 1669917002: Opening ipv4 listen socket on port 8883.
- 1669917002: Opening ipv6 listen socket on port 8883.
- 1669917002: Opening ipv4 listen socket on port 1883.
- 1669917002: Opening ipv6 listen socket on port 1883.
- 1669917002: mosquitto version 2.0.15 running
- 1669917004: New connection from 172.19.0.2:46472 on port 1883.
- ----------------
- $ docker logs netmaker
- [netmaker] 2022-12-01 20:52:24 connecting to sqlite
- [netmaker] 2022-12-01 20:52:24 database successfully connected
- [netmaker] 2022-12-01 20:52:24 no OAuth provider found or not configured, continuing without OAuth
- [netmaker] 2022-12-01 20:52:24 Configuring MQ...
- [netmaker] 2022-12-01 20:52:24 MQ config exists already, So Updating Existing Config...
- [netmaker] 2022-12-01 20:52:24 REST Server successfully started on port 8081 (REST)
- [netmaker] 2022-12-01 20:52:24 connecting to mq broker at ws://mq:1883 with TLS? false
- [netmaker] Fatal: Admin: could not connect to broker, token timeout, exiting ...
- -----------------------------------
- $ docker logs caddy
- 2022/12/01 20:54:35.884 INFO shutting down apps, then terminating {"signal": "SIGTERM"}
- 2022/12/01 20:54:35.884 WARN exiting; byeee!! 👋 {"signal": "SIGTERM"}
- 2022/12/01 20:54:35.922 INFO tls.cache.maintenance stopped background certificate maintenance {"cache": "0xc000122070"}
- 2022/12/01 20:54:35.923 INFO admin stopped previous server {"address": "localhost:2019"}
- 2022/12/01 20:54:35.923 INFO shutdown complete {"signal": "SIGTERM", "exit_code": 0}
- 2022/12/01 20:54:36.718 INFO using provided configuration {"config_file": "/etc/caddy/Caddyfile", "config_adapter": "caddyfile"}
- 2022/12/01 20:54:36.725 WARN Caddyfile input is not formatted; run the 'caddy fmt' command to fix inconsistencies {"adapter": "caddyfile", "file": "/etc/caddy/Caddyfile", "line": 2}
- 2022/12/01 20:54:36.727 INFO admin admin endpoint started {"address": "localhost:2019", "enforce_origin": false, "origins": ["//localhost:2019", "//[::1]:2019", "//127.0.0.1:2019"]}
- 2022/12/01 20:54:36.728 INFO http server is listening only on the HTTPS port but has no TLS connection policies; adding one to enable TLS {"server_name": "srv0", "https_port": 443}
- 2022/12/01 20:54:36.728 INFO http enabling automatic HTTP->HTTPS redirects {"server_name": "srv0"}
- 2022/12/01 20:54:36.728 INFO tls.cache.maintenance started background certificate maintenance {"cache": "0xc00064d6c0"}
- 2022/12/01 20:54:36.730 INFO tls cleaning storage unit {"description": "FileStorage:/data/caddy"}
- 2022/12/01 20:54:36.730 INFO http enabling HTTP/3 listener {"addr": ":443"}
- 2022/12/01 20:54:36.732 INFO failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See https://github.com/lucas-clemente/quic-go/wiki/UDP-Receive-Buffer-Size for details.
- 2022/12/01 20:54:36.732 INFO http.log server running {"name": "srv0", "protocols": ["h1", "h2", "h3"]}
- 2022/12/01 20:54:36.734 INFO http.log server running {"name": "remaining_auto_https_redirects", "protocols": ["h1", "h2", "h3"]}
- 2022/12/01 20:54:36.735 INFO http enabling automatic TLS certificate management {"domains": ["*.rr-sv.win", "rr-sv.win"]}
- 2022/12/01 20:54:36.737 INFO tls finished cleaning storage units
- 2022/12/01 20:54:36.740 INFO autosaved config (load with --resume flag) {"file": "/config/caddy/autosave.json"}
- 2022/12/01 20:54:36.741 INFO serving initial configurationgs caddy
- 2022/12/01 20:54:35.884 INFO shutting down apps, then terminating {"signal": "SIGTERM"}
- 2022/12/01 20:54:35.884 WARN exiting; byeee!! 👋 {"signal": "SIGTERM"}
- 2022/12/01 20:54:35.922 INFO tls.cache.maintenance stopped background certificate maintenance {"cache": "0xc000122070"}
- 2022/12/01 20:54:35.923 INFO admin stopped previous server {"address": "localhost:2019"}
- 2022/12/01 20:54:35.923 INFO shutdown complete {"signal": "SIGTERM", "exit_code": 0}
- 2022/12/01 20:54:36.718 INFO using provided configuration {"config_file": "/etc/caddy/Caddyfile", "config_adapter": "caddyfile"}
- 2022/12/01 20:54:36.725 WARN Caddyfile input is not formatted; run the 'caddy fmt' command to fix inconsistencies {"adapter": "caddyfile", "file": "/etc/caddy/Caddyfile", "line": 2}
- 2022/12/01 20:54:36.727 INFO admin admin endpoint started {"address": "localhost:2019", "enforce_origin": false, "origins": ["//localhost:2019", "//[::1]:2019", "//127.0.0.1:2019"]}
- 2022/12/01 20:54:36.728 INFO http server is listening only on the HTTPS port but has no TLS connection policies; adding one to enable TLS {"server_name": "srv0", "https_port": 443}
- 2022/12/01 20:54:36.728 INFO http enabling automatic HTTP->HTTPS redirects {"server_name": "srv0"}
- 2022/12/01 20:54:36.728 INFO tls.cache.maintenance started background certificate maintenance {"cache": "0xc00064d6c0"}
- 2022/12/01 20:54:36.730 INFO tls cleaning storage unit {"description": "FileStorage:/data/caddy"}
- 2022/12/01 20:54:36.730 INFO http enabling HTTP/3 listener {"addr": ":443"}
- 2022/12/01 20:54:36.732 INFO failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See https://github.com/lucas-clemente/quic-go/wiki/UDP-Receive-Buffer-Size for details.
- 2022/12/01 20:54:36.732 INFO http.log server running {"name": "srv0", "protocols": ["h1", "h2", "h3"]}
- 2022/12/01 20:54:36.734 INFO http.log server running {"name": "remaining_auto_https_redirects", "protocols": ["h1", "h2", "h3"]}
- 2022/12/01 20:54:36.735 INFO http enabling automatic TLS certificate management {"domains": ["<*.my domain>", "<my domain>]}
- 2022/12/01 20:54:36.737 INFO tls finished cleaning storage units
- 2022/12/01 20:54:36.740 INFO autosaved config (load with --resume flag) {"file": "/config/caddy/autosave.json"}
- 2022/12/01 20:54:36.741 INFO serving initial configuration
- --------------------------------------------
- $ cat Caddyfile
- {
- email <myemail>
- }
- <*.my domain>, <my domain> {
- tls {
- dns cloudflare <token>
- }
- # Netmaker Dashboard
- @dashboard host dashboard. <my domain>
- handle @dashboard {
- header {
- Access-Control-Allow-Origin <*.my domain>
- Strict-Transport-Security "max-age=31536000;"
- X-XSS-Protection "1; mode=block"
- X-Frame-Options "SAMEORIGIN"
- X-Robots-Tag "none"
- -Server
- }
- reverse_proxy http://netmaker-ui
- }
- # Netmaker API
- @nmapi host nmapi. <my domain>
- handle @nmapi {
- reverse_proxy http://netmaker:8081
- }
- # MQ
- @broker host wws://broker. <my domain>
- handle @broker {
- reverse_proxy ws://mq:8883
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment