1
0
mirror of https://github.com/cmur2/openvpn-status-web.git synced 2025-09-28 21:52:05 +02:00

8 Commits

Author SHA1 Message Date
cn
64ec5e1e56 release: 3.0.0
- drop Ruby 2.3 and 2.4 compatibility
- add Dockerfile
2020-07-14 20:08:06 +02:00
depfu[bot]
7597c17e93 gem: upgrade rubocop to version 0.88.0
Update rubocop to version 0.88.0 (#13)

Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
Co-authored-by: Christian Nicolai <cn@mycrobase.de>
2020-07-14 20:06:06 +02:00
ac647a4f21 gem: bump minimum required Ruby version to Ruby 2.5 (#14) 2020-07-14 19:57:25 +02:00
cn
78f45f5080 docs: add example Dockerfile 2020-07-13 10:39:30 +02:00
9aeb1a9ad5 docs: fix typos 2020-07-13 10:33:54 +02:00
88c22a6504 docs: fix Travis CI build badge 2020-07-10 23:09:34 +02:00
depfu[bot]
289535d753 gems: update bundler-audit to version 0.7.0.1
(#9)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
2020-06-14 12:42:05 +02:00
depfu[bot]
8d42bdafc1 gems: update rubocop to version 0.81.0
(#3)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
2020-04-02 13:51:52 +02:00
7 changed files with 30 additions and 11 deletions

View File

@@ -1,5 +1,6 @@
AllCops:
TargetRubyVersion: '2.3'
TargetRubyVersion: '2.5'
NewCops: enable
Layout/EmptyLineAfterGuardClause:
Enabled: false
@@ -44,6 +45,9 @@ Naming/MethodParameterName:
Naming/MemoizedInstanceVariableName:
Enabled: false
Style/AccessorGrouping:
Enabled: false
Style/ConditionalAssignment:
Enabled: false

View File

@@ -5,8 +5,6 @@ rvm:
- 2.7
- 2.6
- 2.5
- 2.4
- 2.3
script:
- bundle exec rake travis

View File

@@ -1,6 +1,6 @@
# openvpn-status-web
[![Build Status](https://travis-ci.org/cmur2/openvpn-status-web.svg)](https://travis-ci.org/cmur2/openvpn-status-web) [![Depfu](https://badges.depfu.com/badges/c264e2f70f2a19c43f880ddcb4a12ba8/overview.svg)](https://depfu.com/github/cmur2/openvpn-status-web?project_id=6194)
[![Build Status](https://travis-ci.org/cmur2/openvpn-status-web.svg?branch=master)](https://travis-ci.org/cmur2/openvpn-status-web) [![Depfu](https://badges.depfu.com/badges/c264e2f70f2a19c43f880ddcb4a12ba8/overview.svg)](https://depfu.com/github/cmur2/openvpn-status-web?project_id=6194)
## 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.
### 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
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.

15
docs/Dockerfile Normal file
View File

@@ -0,0 +1,15 @@
FROM alpine:3.12
EXPOSE 8080
ENV VERSION=3.0.0
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"]

View File

@@ -1,5 +1,5 @@
# frozen_string_literal: true
module OpenVPNStatusWeb
VERSION = '2.1.0'
VERSION = '3.0.0'
end

View File

@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
s.executables = ['openvpn-status-web']
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 'rack', '~> 2.0'
@@ -32,10 +32,10 @@ Gem::Specification.new do |s|
s.add_development_dependency 'better_errors'
s.add_development_dependency 'binding_of_caller'
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 'rake'
s.add_development_dependency 'rspec'
s.add_development_dependency 'rubocop', '~> 0.80.0'
s.add_development_dependency 'rubocop', '~> 0.88.0'
s.add_development_dependency 'solargraph'
end