Guest User

Untitled

a guest
Dec 1st, 2022
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.64 KB | None | 0 0
  1. $ docker logs mq
  2. Starting MQ...
  3. 1669917002: mosquitto version 2.0.15 starting
  4. 1669917002: Config loaded from /mosquitto/config/mosquitto.conf.
  5. 1669917002: Loading plugin: /usr/lib/mosquitto_dynamic_security.so
  6. 1669917002: Opening ipv4 listen socket on port 8883.
  7. 1669917002: Opening ipv6 listen socket on port 8883.
  8. 1669917002: Opening ipv4 listen socket on port 1883.
  9. 1669917002: Opening ipv6 listen socket on port 1883.
  10. 1669917002: mosquitto version 2.0.15 running
  11. 1669917004: New connection from 172.19.0.2:46472 on port 1883.
  12. ----------------
  13. $ docker logs netmaker
  14. [netmaker] 2022-12-01 20:52:24 connecting to sqlite
  15. [netmaker] 2022-12-01 20:52:24 database successfully connected
  16. [netmaker] 2022-12-01 20:52:24 no OAuth provider found or not configured, continuing without OAuth
  17. [netmaker] 2022-12-01 20:52:24 Configuring MQ...
  18. [netmaker] 2022-12-01 20:52:24 MQ config exists already, So Updating Existing Config...
  19. [netmaker] 2022-12-01 20:52:24 REST Server successfully started on port 8081 (REST)
  20. [netmaker] 2022-12-01 20:52:24 connecting to mq broker at ws://mq:1883 with TLS? false
  21. [netmaker] Fatal: Admin: could not connect to broker, token timeout, exiting ...
  22. -----------------------------------
  23. $ docker logs caddy
  24.  
  25. 2022/12/01 20:54:35.884 INFO shutting down apps, then terminating {"signal": "SIGTERM"}
  26. 2022/12/01 20:54:35.884 WARN exiting; byeee!! 👋 {"signal": "SIGTERM"}
  27. 2022/12/01 20:54:35.922 INFO tls.cache.maintenance stopped background certificate maintenance {"cache": "0xc000122070"}
  28. 2022/12/01 20:54:35.923 INFO admin stopped previous server {"address": "localhost:2019"}
  29. 2022/12/01 20:54:35.923 INFO shutdown complete {"signal": "SIGTERM", "exit_code": 0}
  30. 2022/12/01 20:54:36.718 INFO using provided configuration {"config_file": "/etc/caddy/Caddyfile", "config_adapter": "caddyfile"}
  31. 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}
  32. 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"]}
  33. 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}
  34. 2022/12/01 20:54:36.728 INFO http enabling automatic HTTP->HTTPS redirects {"server_name": "srv0"}
  35. 2022/12/01 20:54:36.728 INFO tls.cache.maintenance started background certificate maintenance {"cache": "0xc00064d6c0"}
  36. 2022/12/01 20:54:36.730 INFO tls cleaning storage unit {"description": "FileStorage:/data/caddy"}
  37. 2022/12/01 20:54:36.730 INFO http enabling HTTP/3 listener {"addr": ":443"}
  38. 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.
  39. 2022/12/01 20:54:36.732 INFO http.log server running {"name": "srv0", "protocols": ["h1", "h2", "h3"]}
  40. 2022/12/01 20:54:36.734 INFO http.log server running {"name": "remaining_auto_https_redirects", "protocols": ["h1", "h2", "h3"]}
  41. 2022/12/01 20:54:36.735 INFO http enabling automatic TLS certificate management {"domains": ["*.rr-sv.win", "rr-sv.win"]}
  42. 2022/12/01 20:54:36.737 INFO tls finished cleaning storage units
  43. 2022/12/01 20:54:36.740 INFO autosaved config (load with --resume flag) {"file": "/config/caddy/autosave.json"}
  44. 2022/12/01 20:54:36.741 INFO serving initial configurationgs caddy
  45. 2022/12/01 20:54:35.884 INFO shutting down apps, then terminating {"signal": "SIGTERM"}
  46. 2022/12/01 20:54:35.884 WARN exiting; byeee!! 👋 {"signal": "SIGTERM"}
  47. 2022/12/01 20:54:35.922 INFO tls.cache.maintenance stopped background certificate maintenance {"cache": "0xc000122070"}
  48. 2022/12/01 20:54:35.923 INFO admin stopped previous server {"address": "localhost:2019"}
  49. 2022/12/01 20:54:35.923 INFO shutdown complete {"signal": "SIGTERM", "exit_code": 0}
  50. 2022/12/01 20:54:36.718 INFO using provided configuration {"config_file": "/etc/caddy/Caddyfile", "config_adapter": "caddyfile"}
  51. 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}
  52. 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"]}
  53. 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}
  54. 2022/12/01 20:54:36.728 INFO http enabling automatic HTTP->HTTPS redirects {"server_name": "srv0"}
  55. 2022/12/01 20:54:36.728 INFO tls.cache.maintenance started background certificate maintenance {"cache": "0xc00064d6c0"}
  56. 2022/12/01 20:54:36.730 INFO tls cleaning storage unit {"description": "FileStorage:/data/caddy"}
  57. 2022/12/01 20:54:36.730 INFO http enabling HTTP/3 listener {"addr": ":443"}
  58. 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.
  59. 2022/12/01 20:54:36.732 INFO http.log server running {"name": "srv0", "protocols": ["h1", "h2", "h3"]}
  60. 2022/12/01 20:54:36.734 INFO http.log server running {"name": "remaining_auto_https_redirects", "protocols": ["h1", "h2", "h3"]}
  61. 2022/12/01 20:54:36.735 INFO http enabling automatic TLS certificate management {"domains": ["<*.my domain>", "<my domain>]}
  62. 2022/12/01 20:54:36.737 INFO tls finished cleaning storage units
  63. 2022/12/01 20:54:36.740 INFO autosaved config (load with --resume flag) {"file": "/config/caddy/autosave.json"}
  64. 2022/12/01 20:54:36.741 INFO serving initial configuration
  65. --------------------------------------------
  66. $ cat Caddyfile
  67.  
  68. {
  69. email <myemail>
  70. }
  71.  
  72. <*.my domain>, <my domain> {
  73. tls {
  74. dns cloudflare <token>
  75. }
  76.  
  77. # Netmaker Dashboard
  78. @dashboard host dashboard. <my domain>
  79. handle @dashboard {
  80. header {
  81. Access-Control-Allow-Origin <*.my domain>
  82. Strict-Transport-Security "max-age=31536000;"
  83. X-XSS-Protection "1; mode=block"
  84. X-Frame-Options "SAMEORIGIN"
  85. X-Robots-Tag "none"
  86. -Server
  87. }
  88. reverse_proxy http://netmaker-ui
  89. }
  90.  
  91. # Netmaker API
  92. @nmapi host nmapi. <my domain>
  93. handle @nmapi {
  94. reverse_proxy http://netmaker:8081
  95. }
  96.  
  97. # MQ
  98. @broker host wws://broker. <my domain>
  99. handle @broker {
  100. reverse_proxy ws://mq:8883
  101. }
  102.  
  103. }
  104.  
  105.  
Advertisement
Add Comment
Please, Sign In to add comment