Compare commits
No commits in common. "base-url" and "master" have entirely different histories.
|
|
@ -52,7 +52,7 @@ level = info
|
||||||
;
|
;
|
||||||
; This authorization will be used to authorize socket / web connections if it's set.
|
; This authorization will be used to authorize socket / web connections if it's set.
|
||||||
;
|
;
|
||||||
authorization = qwe
|
;authorization = AuTh
|
||||||
;
|
;
|
||||||
; A value indicates whether agent offline or not.
|
; A value indicates whether agent offline or not.
|
||||||
;
|
;
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ body {
|
||||||
letter-spacing: 0.5px;
|
letter-spacing: 0.5px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
-webkit-text-size-adjust: none;
|
-webkit-text-size-adjust: none;
|
||||||
background: transparent url(/processes/img/carbon.png) 0 0 repeat;
|
background: transparent url(/img/carbon.png) 0 0 repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
.load {
|
.load {
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ function login() {
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
return info(res.error);
|
return info(res.error);
|
||||||
} else {
|
} else {
|
||||||
window.location.href = '/processes/';
|
window.location.href = '/';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
var _ = require('lodash')
|
var _ = require('lodash')
|
||||||
var Monitor = require('../../lib/monitor')
|
var Monitor = require('../../lib/monitor')
|
||||||
var baseUrl = '/processes'
|
|
||||||
// Authorization
|
// Authorization
|
||||||
action(function auth (req, res) {
|
action(function auth (req, res) {
|
||||||
if (!req._config.agent || (req._config.agent.authorization === req.session['authorization'])) {
|
if (!req._config.agent || (req._config.agent.authorization === req.session['authorization'])) {
|
||||||
return res.redirect(baseUrl + '/')
|
return res.redirect('/')
|
||||||
}
|
}
|
||||||
res.render('auth', {
|
res.render('auth', {
|
||||||
title: 'Authorization'
|
title: 'Authorization'
|
||||||
|
|
@ -14,7 +14,7 @@ action(function auth (req, res) {
|
||||||
// Index
|
// Index
|
||||||
action(function (req, res) {
|
action(function (req, res) {
|
||||||
if (req._config.agent && (req._config.agent.authorization !== req.session['authorization'])) {
|
if (req._config.agent && (req._config.agent.authorization !== req.session['authorization'])) {
|
||||||
return res.redirect(baseUrl + '/auth')
|
return res.redirect('/auth')
|
||||||
}
|
}
|
||||||
var options = _.clone(req._config)
|
var options = _.clone(req._config)
|
||||||
var q = Monitor.available(_.extend(options, {
|
var q = Monitor.available(_.extend(options, {
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,14 @@
|
||||||
doctype html
|
doctype html
|
||||||
html(lang=en)
|
html(lang=en)
|
||||||
head
|
head
|
||||||
base(href="/processes/")
|
|
||||||
meta(charset='UTF-8')
|
meta(charset='UTF-8')
|
||||||
title= title + '- PM2 Monitor'
|
title= title + '- PM2 Monitor'
|
||||||
meta(name='viewport', content='width=device-width, initial-scale=1.0, maximum-scale=2.0')
|
meta(name='viewport', content='width=device-width, initial-scale=1.0, maximum-scale=2.0')
|
||||||
link(rel='stylesheet', href='/processes/css/bootstrap.min.css')
|
link(rel='stylesheet', href='/css/bootstrap.min.css')
|
||||||
link(rel='stylesheet', href='/processes/css/jquery.sticky.min.css')
|
link(rel='stylesheet', href='/css/jquery.sticky.min.css')
|
||||||
link(rel='stylesheet', href='/processes/css/animation.min.css')
|
link(rel='stylesheet', href='/css/animation.min.css')
|
||||||
link(rel='stylesheet', href='/processes/css/jquery.avgrund.min.css')
|
link(rel='stylesheet', href='/css/jquery.avgrund.min.css')
|
||||||
link(rel='shortcut icon' href='/processes/img/favicon.ico')
|
link(rel='shortcut icon' href='/img/favicon.ico')
|
||||||
block head
|
block head
|
||||||
|
|
||||||
- var bodyClassName = '';
|
- var bodyClassName = '';
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,14 @@
|
||||||
extends ../layouts/default
|
extends ../layouts/default
|
||||||
|
|
||||||
block head
|
block head
|
||||||
link(rel='stylesheet', href='/processes/css/jquery.fullPage.css')
|
link(rel='stylesheet', href='/css/jquery.fullPage.css')
|
||||||
link(rel='stylesheet', href='/processes/css/index.css')
|
link(rel='stylesheet', href='/css/index.css')
|
||||||
|
|
||||||
block content
|
block content
|
||||||
#fullpage
|
#fullpage
|
||||||
.section
|
.section
|
||||||
.repo.bounceInDown
|
.repo.bounceInDown
|
||||||
|
a(href='https://github.com/Tjatse/pm2-gui', target='_blank') Github Repo
|
||||||
span
|
span
|
||||||
.polar-usage
|
.polar-usage
|
||||||
.system-info
|
.system-info
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue