Compare commits
30 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2e79bebcc4 | |||
| 9ca2f652d3 | |||
| 9a26ddc52e | |||
| 47001d0b27 | |||
| 1f1e16f471 | |||
| 772c3a10ea | |||
| b03c2fb16e | |||
| 2acd511608 | |||
| ef21de6739 | |||
| e217fc48f1 | |||
| 5d87422fa3 | |||
| 596fd929fa | |||
| 06bdb924a1 | |||
| 8fc700fd85 | |||
| c39acf4a68 | |||
| e32cf42a65 | |||
| 6f4bafada1 | |||
| 0e15004997 | |||
|
|
877fd08bae | ||
|
|
5fc8b1e769 | ||
|
|
5dad6bcfb8 | ||
|
|
2505abdf7c | ||
|
|
c59a176059 | ||
|
|
52f370931e | ||
|
|
53572dc470 | ||
|
|
0b38e1aebc | ||
| 2ac09687dc | |||
| 86358dbb12 | |||
| a06882d4f8 | |||
| 5bc8e066c6 |
22
.gitignore
vendored
Normal file
22
.gitignore
vendored
Normal 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
|
||||||
102
.gitlab-ci.yml
102
.gitlab-ci.yml
@@ -1,71 +1,61 @@
|
|||||||
# gitzone docker
|
# gitzone ci_docker
|
||||||
image: hosttoday/ht-docker-dbase:npmci
|
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
|
||||||
services:
|
|
||||||
- docker:dind
|
|
||||||
variables:
|
|
||||||
DOCKER_DRIVER: overlay
|
|
||||||
|
|
||||||
|
cache:
|
||||||
|
paths:
|
||||||
|
- .npmci-cache/
|
||||||
|
key: '$CI_BUILD_STAGE'
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- npmci npm prepare
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- buildAndTest
|
|
||||||
- build
|
|
||||||
- test
|
- test
|
||||||
- release
|
- release
|
||||||
- trigger
|
- trigger
|
||||||
- pages
|
- pages
|
||||||
|
|
||||||
before_script:
|
testStable:
|
||||||
- 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:
|
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- npmci docker pull registry.gitlab.com test
|
- npmci npm prepare
|
||||||
- npmci docker test
|
- npmci node install stable
|
||||||
only:
|
- npmci npm install
|
||||||
- tags
|
- npmci npm test
|
||||||
- triggers
|
coverage: /\d+.?\d+?\%\s*coverage/
|
||||||
tags:
|
tags:
|
||||||
- lossless
|
- 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:
|
release:
|
||||||
|
image: registry.gitlab.com/hosttoday/ht-docker-dbase:npmci
|
||||||
|
services:
|
||||||
|
- docker:stable-dind
|
||||||
stage: release
|
stage: release
|
||||||
script:
|
script:
|
||||||
- npmci docker pull registry.gitlab.com test
|
- npmci node install stable
|
||||||
- npmci docker push docker.io
|
- npmci docker login
|
||||||
|
- npmci docker build
|
||||||
|
- npmci docker test
|
||||||
- npmci docker push registry.gitlab.com
|
- npmci docker push registry.gitlab.com
|
||||||
only:
|
only:
|
||||||
- tags
|
- tags
|
||||||
- triggers
|
|
||||||
tags:
|
tags:
|
||||||
- lossless
|
- lossless
|
||||||
|
- docker
|
||||||
- priv
|
- priv
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
@@ -74,24 +64,6 @@ trigger:
|
|||||||
- npmci trigger
|
- npmci trigger
|
||||||
only:
|
only:
|
||||||
- tags
|
- tags
|
||||||
- triggers
|
|
||||||
tags:
|
tags:
|
||||||
- lossless
|
- 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
|
- docker
|
||||||
artifacts:
|
|
||||||
expire_in: 1 week
|
|
||||||
paths:
|
|
||||||
- public
|
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
FROM blacktop/elastic-stack:latest
|
FROM blacktop/elastic-stack:latest
|
||||||
COPY ./ssl.kibana.conf /etc/nginx/conf.d/
|
COPY ./nginx.conf /etc/nginx/conf.d/kibana.conf
|
||||||
|
|||||||
27
nginx.conf
Normal file
27
nginx.conf
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
server {
|
||||||
|
listen [::]:3000 default_server;
|
||||||
|
listen *:3000 default_server;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_pass http://127.0.0.1:5601;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection 'upgrade';
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_cache_bypass $http_upgrade;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen [::]:3001 default_server;
|
||||||
|
listen *:3001 default_server;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_pass http://127.0.0.1:9200;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection 'upgrade';
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_cache_bypass $http_upgrade;
|
||||||
|
}
|
||||||
|
}
|
||||||
18
npmextra.json
Normal file
18
npmextra.json
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"gitzone": {
|
||||||
|
"module": {
|
||||||
|
"githost": "gitlab.com",
|
||||||
|
"gitscope": "hosttoday",
|
||||||
|
"gitrepo": "ht-docker-elk",
|
||||||
|
"shortDescription": "elastic stack with full basic authentication",
|
||||||
|
"npmPackagename": "@hosttoday/ht-docker-node",
|
||||||
|
"license": "MIT"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"npmci": {
|
||||||
|
"dockerRegistries": [
|
||||||
|
"docker.io",
|
||||||
|
"registry.gitlab.com"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
5
package-lock.json
generated
Normal file
5
package-lock.json
generated
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"name": "ht-docker-elk",
|
||||||
|
"version": "1.0.16",
|
||||||
|
"lockfileVersion": 1
|
||||||
|
}
|
||||||
19
package.json
19
package.json
@@ -1,10 +1,11 @@
|
|||||||
{
|
{
|
||||||
"name": "ht-docker-elk",
|
"name": "ht-docker-elk",
|
||||||
"version": "1.0.1",
|
"version": "1.0.16",
|
||||||
"description": "elastic stack with full basic authentication",
|
"description": "elastic stack with full basic authentication",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Error: no test specified\"",
|
||||||
|
"build": "echo \"Not needed for now\""
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@@ -15,5 +16,17 @@
|
|||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://gitlab.com/hosttoday/ht-docker-elk/issues"
|
"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"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
35
readme.md
Normal file
35
readme.md
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
# @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
|
||||||
|
[](https://gitlab.com/hosttoday/ht-docker-elk/commits/master)
|
||||||
|
[](https://gitlab.com/hosttoday/ht-docker-elk/commits/master)
|
||||||
|
[](https://www.npmjs.com/package/@hosttoday/ht-docker-node)
|
||||||
|
[](https://snyk.io/test/npm/@hosttoday/ht-docker-node)
|
||||||
|
[](https://nodejs.org/dist/latest-v10.x/docs/api/)
|
||||||
|
[](https://nodejs.org/dist/latest-v10.x/docs/api/)
|
||||||
|
[](https://prettier.io/)
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
This image runs the elastic stack and supports full basic authentication
|
||||||
|
|
||||||
|
```
|
||||||
|
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)
|
||||||
|
|
||||||
|
[](https://maintainedby.lossless.com)
|
||||||
@@ -1,54 +0,0 @@
|
|||||||
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 _;
|
|
||||||
|
|
||||||
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;
|
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
|
||||||
proxy_set_header Connection 'upgrade';
|
|
||||||
proxy_set_header Host $host;
|
|
||||||
proxy_cache_bypass $http_upgrade;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
server {
|
|
||||||
listen [::]:9201 ssl http2;
|
|
||||||
listen 443 ssl http2;
|
|
||||||
|
|
||||||
server_name _;
|
|
||||||
|
|
||||||
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;
|
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
|
||||||
proxy_set_header Connection 'upgrade';
|
|
||||||
proxy_set_header Host $host;
|
|
||||||
proxy_cache_bypass $http_upgrade;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
17
tslint.json
Normal file
17
tslint.json
Normal 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"
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user