20 Commits

Author SHA1 Message Date
1f1e16f471 1.0.14 2019-11-01 23:22:23 +01:00
772c3a10ea fix(core): update 2019-11-01 23:22:23 +01:00
b03c2fb16e 1.0.13 2019-11-01 22:54:49 +01:00
2acd511608 fix(core): update 2019-11-01 22:54:49 +01:00
ef21de6739 1.0.12 2019-11-01 22:53:34 +01:00
e217fc48f1 fix(core): update 2019-11-01 22:53:34 +01:00
5d87422fa3 1.0.11 2019-11-01 18:26:03 +01:00
596fd929fa fix(core): update 2019-11-01 18:26:02 +01:00
06bdb924a1 1.0.10 2019-11-01 14:19:35 +01:00
8fc700fd85 fix(core): update 2019-11-01 14:19:34 +01:00
c39acf4a68 1.0.9 2019-11-01 13:15:48 +01:00
e32cf42a65 fix(core): update 2019-11-01 13:15:47 +01:00
6f4bafada1 1.0.8 2019-11-01 13:10:35 +01:00
0e15004997 fix(core): update 2019-11-01 13:10:35 +01:00
Philipp Kunz
877fd08bae 1.0.7 2019-10-30 19:19:55 +01:00
Philipp Kunz
5fc8b1e769 fix(core): update 2019-10-30 19:19:55 +01:00
Philipp Kunz
5dad6bcfb8 1.0.6 2019-10-30 19:17:42 +01:00
Philipp Kunz
2505abdf7c fix(core): update 2019-10-30 19:17:41 +01:00
Philipp Kunz
c59a176059 1.0.5 2019-10-30 19:16:37 +01:00
Philipp Kunz
52f370931e fix(core): update 2019-10-30 19:16:37 +01:00
7 changed files with 128 additions and 96 deletions

22
.gitignore vendored Normal file
View File

@@ -0,0 +1,22 @@
.nogit/
# artifacts
coverage/
public/
pages/
# installs
node_modules/
# caches
.yarn/
.cache/
.rpt2_cache
# builds
dist/
dist_web/
dist_serve/
dist_ts_web/
# custom

View File

@@ -1,71 +1,61 @@
# gitzone docker
image: hosttoday/ht-docker-dbase:npmci
services:
- docker:dind
variables:
DOCKER_DRIVER: overlay
# gitzone ci_docker
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
cache:
paths:
- .npmci-cache/
key: '$CI_BUILD_STAGE'
before_script:
- npmci npm prepare
stages:
- buildAndTest
- build
- test
- release
- trigger
- pages
before_script:
- yarn global add npmci
- npmci docker login
buildAndTest:
stage: buildAndTest
script:
- npmci docker build
- npmci docker test
except:
- tags
- triggers
tags:
- lossless
- priv
build:
stage: build
script:
- npmci docker build
- npmci docker push registry.gitlab.com test
only:
- tags
- triggers
tags:
- lossless
- priv
test:
testStable:
stage: test
script:
- npmci docker pull registry.gitlab.com test
- npmci docker test
only:
- tags
- triggers
- npmci npm prepare
- npmci node install stable
- npmci npm install
- npmci npm test
coverage: /\d+.?\d+?\%\s*coverage/
tags:
- lossless
- priv
- docker
testBuild:
stage: test
script:
- npmci npm prepare
- npmci node install stable
- npmci npm install
- npmci command npm run build
coverage: /\d+.?\d+?\%\s*coverage/
tags:
- lossless
- docker
- notpriv
release:
image: registry.gitlab.com/hosttoday/ht-docker-dbase:npmci
services:
- docker:stable-dind
stage: release
script:
- npmci docker pull registry.gitlab.com test
- npmci docker push docker.io
- npmci node install stable
- npmci docker login
- npmci docker build
- npmci docker test
- npmci docker push registry.gitlab.com
only:
- tags
- triggers
tags:
- lossless
- docker
- priv
trigger:
@@ -74,24 +64,6 @@ trigger:
- npmci trigger
only:
- tags
- triggers
tags:
- lossless
- priv
pages:
before_script:
- 'npmci -v'
image: hosttoday/ht-docker-node:npmci
stage: pages
script:
- npmci command yarn global add npmpage
- npmci command npmpage
only:
- tags
tags:
- docker
artifacts:
expire_in: 1 week
paths:
- public

2
package-lock.json generated
View File

@@ -1,5 +1,5 @@
{
"name": "ht-docker-elk",
"version": "1.0.4",
"version": "1.0.14",
"lockfileVersion": 1
}

View File

@@ -1,10 +1,11 @@
{
"name": "ht-docker-elk",
"version": "1.0.4",
"version": "1.0.14",
"description": "elastic stack with full basic authentication",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\"",
"build": "echo \"Not needed for now\""
},
"repository": {
"type": "git",
@@ -15,5 +16,17 @@
"bugs": {
"url": "https://gitlab.com/hosttoday/ht-docker-elk/issues"
},
"homepage": "https://gitlab.com/hosttoday/ht-docker-elk#README"
"homepage": "https://gitlab.com/hosttoday/ht-docker-elk#README",
"private": true,
"files": [
"ts/**/*",
"ts_web/**/*",
"dist/**/*",
"dist_web/**/*",
"dist_ts_web/**/*",
"assets/**/*",
"cli.js",
"npmextra.json",
"readme.md"
]
}

View File

@@ -1,6 +1,35 @@
# hosttoday/ht-docker-elk
# @hosttoday/ht-docker-elk
elastic stack with full basic authentication
## Availabililty and Links
* [npmjs.org (npm package)](https://www.npmjs.com/package/@hosttoday/ht-docker-node)
* [gitlab.com (source)](https://gitlab.com/hosttoday/ht-docker-elk)
* [github.com (source mirror)](https://github.com/hosttoday/ht-docker-elk)
* [docs (typedoc)](https://hosttoday.gitlab.io/ht-docker-elk/)
## Status for master
[![build status](https://gitlab.com/hosttoday/ht-docker-elk/badges/master/build.svg)](https://gitlab.com/hosttoday/ht-docker-elk/commits/master)
[![coverage report](https://gitlab.com/hosttoday/ht-docker-elk/badges/master/coverage.svg)](https://gitlab.com/hosttoday/ht-docker-elk/commits/master)
[![npm downloads per month](https://img.shields.io/npm/dm/@hosttoday/ht-docker-node.svg)](https://www.npmjs.com/package/@hosttoday/ht-docker-node)
[![Known Vulnerabilities](https://snyk.io/test/npm/@hosttoday/ht-docker-node/badge.svg)](https://snyk.io/test/npm/@hosttoday/ht-docker-node)
[![TypeScript](https://img.shields.io/badge/TypeScript->=%203.x-blue.svg)](https://nodejs.org/dist/latest-v10.x/docs/api/)
[![node](https://img.shields.io/badge/node->=%2010.x.x-blue.svg)](https://nodejs.org/dist/latest-v10.x/docs/api/)
[![JavaScript Style Guide](https://img.shields.io/badge/code%20style-prettier-ff69b4.svg)](https://prettier.io/)
## Usage
This image runs the elastic stack and supports full basic authentication
```
docker run -d --name elstack -p 80:80 -p 443:443 -p 9200:9201 -e SSL=true -e ELSK_USER="anyuser" -e ELSK_PASS="anypass" hosttoday/ht-docker-elk
docker run --rm -d --name elstack -p 3000:3000 -p 9200:9201 -e SSL=true -e ELSK_USER="anyuser" -e ELSK_PASS="anypass" registry.gitlab.com/hosttoday/ht-docker-elk
```
## Contribute
We are always happy for code contributions. If you are not the code contributing type that is ok. + Still, maintaining Open Source repositories takes considerable time and thought. If you like the quality of what we do and our modules are useful to you we would appreciate a little monthly contribution: [Contribute monthly :)](https://lossless.link/contribute)
For further information read the linked docs at the top of this readme.
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh)
| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy)
[![repo-footer](https://lossless.gitlab.io/publicrelations/repofooter.svg)](https://maintainedby.lossless.com)

View File

@@ -1,25 +1,10 @@
server {
listen [::]:80 default_server;
listen 80 default_server;
server_name _;
return 301 https://$host$request_uri;
}
server {
listen [::]:443 ssl http2;
listen 443 ssl http2;
server_name _;
listen [::]:3000 default_server;
listen *:3000 default_server;
auth_basic "Restricted Access";
auth_basic_user_file /etc/nginx/htpasswd.users;
ssl on;
ssl_certificate /etc/nginx/ssl/kibana.crt;
ssl_certificate_key /etc/nginx/ssl/kibana.key;
location / {
proxy_pass http://127.0.0.1:5601;
proxy_http_version 1.1;
@@ -31,18 +16,12 @@ server {
}
server {
listen [::]:9201 ssl http2;
listen 9201 ssl http2;
server_name _;
listen [::]:3001 default_server;
listen *:3001 default_server;
auth_basic "Restricted Access";
auth_basic_user_file /etc/nginx/htpasswd.users;
ssl on;
ssl_certificate /etc/nginx/ssl/kibana.crt;
ssl_certificate_key /etc/nginx/ssl/kibana.key;
location / {
proxy_pass http://127.0.0.1:9200;
proxy_http_version 1.1;

17
tslint.json Normal file
View File

@@ -0,0 +1,17 @@
{
"extends": ["tslint:latest", "tslint-config-prettier"],
"rules": {
"semicolon": [true, "always"],
"no-console": false,
"ordered-imports": false,
"object-literal-sort-keys": false,
"member-ordering": {
"options":{
"order": [
"static-method"
]
}
}
},
"defaultSeverity": "warning"
}