mirror of
https://github.com/cmur2/openvpn-status-web.git
synced 2025-09-28 21:52:05 +02:00
Compare commits
17 Commits
Author | SHA1 | Date | |
---|---|---|---|
109b27fecc | |||
b44517ec21 | |||
![]() |
520da15739 | ||
![]() |
9b3a13abef | ||
![]() |
b81d61b8d7 | ||
147a905bfc | |||
eeed0fa089 | |||
586ae8ae0f | |||
![]() |
075ec1e548 | ||
64ec5e1e56 | |||
![]() |
7597c17e93 | ||
ac647a4f21 | |||
78f45f5080 | |||
9aeb1a9ad5 | |||
88c22a6504 | |||
![]() |
289535d753 | ||
![]() |
8d42bdafc1 |
9
.editorconfig
Normal file
9
.editorconfig
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
end_of_line = lf
|
||||||
|
charset = utf-8
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
insert_final_newline = true
|
@@ -1,5 +1,6 @@
|
|||||||
AllCops:
|
AllCops:
|
||||||
TargetRubyVersion: '2.3'
|
TargetRubyVersion: '2.5'
|
||||||
|
NewCops: enable
|
||||||
|
|
||||||
Layout/EmptyLineAfterGuardClause:
|
Layout/EmptyLineAfterGuardClause:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
@@ -44,6 +45,9 @@ Naming/MethodParameterName:
|
|||||||
Naming/MemoizedInstanceVariableName:
|
Naming/MemoizedInstanceVariableName:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
|
Style/AccessorGrouping:
|
||||||
|
Enabled: false
|
||||||
|
|
||||||
Style/ConditionalAssignment:
|
Style/ConditionalAssignment:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
|
@@ -5,8 +5,6 @@ rvm:
|
|||||||
- 2.7
|
- 2.7
|
||||||
- 2.6
|
- 2.6
|
||||||
- 2.5
|
- 2.5
|
||||||
- 2.4
|
|
||||||
- 2.3
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- bundle exec rake travis
|
- bundle exec rake travis
|
||||||
|
10
README.md
10
README.md
@@ -1,6 +1,6 @@
|
|||||||
# openvpn-status-web
|
# openvpn-status-web
|
||||||
|
|
||||||
[](https://travis-ci.org/cmur2/openvpn-status-web) [](https://depfu.com/github/cmur2/openvpn-status-web?project_id=6194)
|
[](https://travis-ci.org/cmur2/openvpn-status-web) [](https://depfu.com/github/cmur2/openvpn-status-web?project_id=6194)
|
||||||
|
|
||||||
## Description
|
## Description
|
||||||
|
|
||||||
@@ -57,10 +57,12 @@ For more information about OpenVPN status file and version, see their [man page]
|
|||||||
|
|
||||||
If the information exposed is important to you serve it via the VPN or use a webserver as a proxy to handle SSL and/or HTTP authentication.
|
If the information exposed is important to you serve it via the VPN or use a webserver as a proxy to handle SSL and/or HTTP authentication.
|
||||||
|
|
||||||
### Init scripts
|
### Startup
|
||||||
|
|
||||||
The [Debian 6 init.d script](init.d/debian-6-openvpn-status-web) assumes that openvpn-status-web is installed into the system ruby (no RVM support) and the config.yaml is at /opt/openvpn-status-web/config.yaml. Modify to your needs.
|
There is a [Dockerfile](docs/Dockerfile) that can be used to build a Docker image for running openvpn-status-web.
|
||||||
|
|
||||||
|
The [Debian 6 init script](docs/debian-init-openvpn-status-web) assumes that openvpn-status-web is installed into the system ruby (no RVM support) and the config.yaml is at `/opt/openvpn-status-web/config.yaml`. Modify to your needs.
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
openvpn-statsu-web is licensed under the Apache License, Version 2.0. See LICENSE for more information.
|
openvpn-status-web is licensed under the Apache License, Version 2.0. See LICENSE for more information.
|
||||||
|
2
Rakefile
2
Rakefile
@@ -21,4 +21,4 @@ end
|
|||||||
|
|
||||||
task default: [:rubocop, :spec, 'bundle:audit']
|
task default: [:rubocop, :spec, 'bundle:audit']
|
||||||
|
|
||||||
task travis: [:default, :'solargraph:tc']
|
task travis: [:default, :'solargraph:init', :'solargraph:tc']
|
||||||
|
15
docs/Dockerfile
Normal file
15
docs/Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
FROM alpine:3.12
|
||||||
|
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
|
ENV VERSION=3.0.1
|
||||||
|
|
||||||
|
RUN apk --no-cache add openssl ca-certificates && \
|
||||||
|
apk --no-cache add ruby ruby-etc ruby-webrick && \
|
||||||
|
apk --no-cache add --virtual .build-deps ruby-dev build-base tzdata && \
|
||||||
|
gem install --no-document openvpn-status-web -v ${VERSION} && \
|
||||||
|
# set timezone to Berlin
|
||||||
|
cp /usr/share/zoneinfo/Europe/Berlin /etc/localtime && \
|
||||||
|
apk del .build-deps
|
||||||
|
|
||||||
|
ENTRYPOINT ["openvpn-status-web", "/etc/openvpn-status-web/config.yml"]
|
@@ -107,7 +107,7 @@ module OpenVPNStatusWeb
|
|||||||
if config['logfile']
|
if config['logfile']
|
||||||
OpenVPNStatusWeb.logger = Logger.new(config['logfile'])
|
OpenVPNStatusWeb.logger = Logger.new(config['logfile'])
|
||||||
else
|
else
|
||||||
OpenVPNStatusWeb.logger = Logger.new(STDOUT)
|
OpenVPNStatusWeb.logger = Logger.new($stdout)
|
||||||
end
|
end
|
||||||
|
|
||||||
OpenVPNStatusWeb.logger.progname = 'openvpn-status-web'
|
OpenVPNStatusWeb.logger.progname = 'openvpn-status-web'
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module OpenVPNStatusWeb
|
module OpenVPNStatusWeb
|
||||||
VERSION = '2.1.0'
|
VERSION = '3.0.1'
|
||||||
end
|
end
|
||||||
|
@@ -24,18 +24,19 @@ Gem::Specification.new do |s|
|
|||||||
s.executables = ['openvpn-status-web']
|
s.executables = ['openvpn-status-web']
|
||||||
s.extra_rdoc_files = Dir['README.md', 'LICENSE']
|
s.extra_rdoc_files = Dir['README.md', 'LICENSE']
|
||||||
|
|
||||||
s.required_ruby_version = '>= 2.3'
|
s.required_ruby_version = '>= 2.5'
|
||||||
|
|
||||||
s.add_runtime_dependency 'metriks'
|
s.add_runtime_dependency 'metriks'
|
||||||
s.add_runtime_dependency 'rack', '~> 2.0'
|
s.add_runtime_dependency 'rack', '~> 2.0'
|
||||||
|
s.add_runtime_dependency 'webrick', '>= 1.6.1'
|
||||||
|
|
||||||
s.add_development_dependency 'better_errors'
|
s.add_development_dependency 'better_errors'
|
||||||
s.add_development_dependency 'binding_of_caller'
|
s.add_development_dependency 'binding_of_caller'
|
||||||
s.add_development_dependency 'bundler'
|
s.add_development_dependency 'bundler'
|
||||||
s.add_development_dependency 'bundler-audit', '~> 0.6.0'
|
s.add_development_dependency 'bundler-audit', '~> 0.7.0'
|
||||||
s.add_development_dependency 'rack-test'
|
s.add_development_dependency 'rack-test'
|
||||||
s.add_development_dependency 'rake'
|
s.add_development_dependency 'rake'
|
||||||
s.add_development_dependency 'rspec'
|
s.add_development_dependency 'rspec'
|
||||||
s.add_development_dependency 'rubocop', '~> 0.80.0'
|
s.add_development_dependency 'rubocop', '~> 0.92.0'
|
||||||
s.add_development_dependency 'solargraph'
|
s.add_development_dependency 'solargraph'
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user