mission_control-servers 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +21 -4
- data/lib/mission_control/servers/routing_helpers.rb +1 -0
- data/lib/mission_control/servers/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9813843f6b3fd4e10d9c891a783792ee8efc91160254dee1b4d0967a4c4282b0
|
4
|
+
data.tar.gz: 39185e7380ebaa91a74d51b62411cbc2fd06b05c5dfc1c2446827699b953f3bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3fadda202901f64790824d5add926efe4b3ee9e4fc8e108ff3bf63cf8b1180cecd3de972b21b6820524a2f4103574881425bae4e570f55d07fa6b6dd8e152829
|
7
|
+
data.tar.gz: 8c40de9fd9e69b1d0d0d3d3364e5bcdc49afe77202ddc38b27adad5962d840d19b37b15bd811d3959a23133a950c494431c1c71ebeb2bb5b2bdd94542d188a9b
|
data/README.md
CHANGED
@@ -52,6 +52,11 @@ If you would like to put the dashboard on something like a Raspberry Pi, you can
|
|
52
52
|
change the dashboard to a dark mode automatically. This will hopefully help provide a "hands off" approach to
|
53
53
|
setting up the kiosk mode.
|
54
54
|
|
55
|
+
You can also create public links with read only permissions.
|
56
|
+
|
57
|
+
![image](https://github.com/kobaltz/mission_control-servers/assets/635114/f867bb8a-e372-4e24-9823-7294a6bb4810)
|
58
|
+
|
59
|
+
|
55
60
|
## URL Configuration
|
56
61
|
|
57
62
|
### Dark Mode
|
@@ -98,13 +103,25 @@ order to install the script on the servers, you also have to expose the endpoint
|
|
98
103
|
|
99
104
|
```ruby
|
100
105
|
Rails.application.routes.draw do
|
101
|
-
|
102
|
-
|
103
|
-
|
106
|
+
MissionControl::Servers::RoutingHelpers.add_public_routes_helper(self)
|
107
|
+
|
104
108
|
constraints AdminConstraint do
|
105
109
|
mount MissionControl::Servers::Engine => "/mission_control-servers"
|
106
110
|
end
|
107
|
-
|
111
|
+
|
112
|
+
end
|
113
|
+
```
|
114
|
+
If you want to change the endpoint, you can do so by changing the mount path.
|
115
|
+
|
116
|
+
```ruby
|
117
|
+
Rails.application.routes.draw do
|
118
|
+
engine_mount_path = "/dashymcdashface"
|
119
|
+
MissionControl::Servers::RoutingHelpers.add_public_routes_helper(self, engine_mount_path)
|
120
|
+
|
121
|
+
constraints AdminConstraint do
|
122
|
+
mount MissionControl::Servers::Engine => engine_mount_path
|
123
|
+
end
|
124
|
+
|
108
125
|
end
|
109
126
|
```
|
110
127
|
|
@@ -11,6 +11,7 @@ module MissionControl
|
|
11
11
|
get "/#{engine_mount_path}/projects/:project_id/dashboards/cpu_history", to: "mission_control/servers/dashboards/cpu_histories#show"
|
12
12
|
get "/#{engine_mount_path}/projects/:project_id/dashboards/memory_history", to: "mission_control/servers/dashboards/memory_histories#show"
|
13
13
|
get "/#{engine_mount_path}/projects/:project_id/dashboards/combo_history", to: "mission_control/servers/dashboards/combo_histories#show"
|
14
|
+
get "#{engine_mount_path}/projects/:project_id/public_projects/new", to: "mission_control/servers/public_projects#new", as: :new_project_public_project
|
14
15
|
get "/#{engine_mount_path}/projects/:project_id/public_projects/:id", to: "mission_control/servers/public_projects#show"
|
15
16
|
get "/#{engine_mount_path}/projects/:project_id/script", to: "mission_control/servers/scripts#show"
|
16
17
|
post "/#{engine_mount_path}/projects/:project_id/ingress", to: "mission_control/servers/ingresses#create"
|