Comments (3)
hi @loeken,
U have to edit your config.ru
require 'dashing'
configure do
set :auth_token, 'YOUR_AUTH_TOKEN'
set :default_dashboard, 'icinga2'
set :protection, :except => :frame_options
helpers do
def protected!
unless authorized?
response['WWW-Authenticate'] = %(Basic realm="Restricted Area")
throw(:halt, [401, "Not authorized\n"])
end
end
def authorized?
@auth ||= Rack::Auth::Basic::Request.new(request.env)
@auth.provided? && @auth.basic? && @auth.credentials && @auth.credentials == ['Username', 'Password']
end
end
end
map Sinatra::Application.assets_prefix do
run Sinatra::Application.sprockets
end
run Sinatra::Application
i did i like this.
from dashing-icinga2.
thanks for the quick reply @odrino14
and what values define my actual username/password? is the 'YOUR_AUTH_TOKEN' my password? where do i set the user?
from dashing-icinga2.
Oh nevermind i didnt see the 'username' 'password' at the bottom, case closed :)
from dashing-icinga2.
Related Issues (20)
- cookies problem on CHROME HOT 8
- Very Long Delay Behind MS App Proxy before Data Shown HOT 11
- Maintainer wanted HOT 9
- I can't set TZ (TimeZone) for container HOT 3
- No information is shown until service is restarted HOT 17
- No data on icinga2-Dashboard HOT 4
- Question: Change data-sizey lower than 1? HOT 2
- Empty Icinga2-Dashboard HOT 2
- [Bug] Receiving 401 errors after Installation HOT 17
- [Bug] DOWN Hosts are not displayed correctly and throw errors: "no implicit conversion of nil into string" HOT 2
- Invalid yield in layout.erb HOT 3
- Multiple Services for single Host with same name are not displayed individually HOT 1
- Pie-chart widgets render too big HOT 1
- sharing dashboards HOT 3
- Restart-Dashing script does not work ubuntu HOT 2
- Guidance modifying dashlet HOT 7
- Disable roundchart animation HOT 3
- Can't get dashing-icinga2 to work HOT 5
- dashing-icinga2, installation not working
- deploy two or more dashing on the same icinga2 Instance.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dashing-icinga2.