Compare commits
2 Commits
aa35f43191
...
263dc057de
Author | SHA1 | Date |
---|---|---|
pegasust | 263dc057de | |
pegasust | 18edc81ac9 |
|
@ -0,0 +1,4 @@
|
||||||
|
*.env
|
||||||
|
!*.env.example
|
||||||
|
influx-configs
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
[default]
|
||||||
|
url = "http://localhost:8086"
|
||||||
|
token = "some-admin-token"
|
||||||
|
org = "someOrganization"
|
||||||
|
active = true
|
||||||
|
|
|
@ -0,0 +1,30 @@
|
||||||
|
# yaml-language-server: $schema=https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json
|
||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
influxdb:
|
||||||
|
image: influxdb:2.5.1-alpine
|
||||||
|
env_file: influxdb.env
|
||||||
|
volumes:
|
||||||
|
- influx_data:/var/lib/influxdb2
|
||||||
|
- ./config:/etc/influxdb2
|
||||||
|
networks: [felia]
|
||||||
|
ports:
|
||||||
|
- 8086:8086
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
# provider:
|
||||||
|
# image: python:3.9.15-buster
|
||||||
|
# restart: unless-stopped
|
||||||
|
# command: bash -c "/usr/src/app/install-pip.sh && python /usr/src/app/provider.py"
|
||||||
|
# volumes:
|
||||||
|
# - ./provider:/usr/src/app
|
||||||
|
# environment:
|
||||||
|
# INFLUXDB_URL: http://influxdb:8086
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
influx_data:
|
||||||
|
|
||||||
|
networks:
|
||||||
|
felia:
|
||||||
|
name: felia-nginx-net
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
DOCKER_INFLUXDB_INIT_MODE=setup
|
||||||
|
DOCKER_INFLUXDB_INIT_USERNAME=some-username
|
||||||
|
DOCKER_INFLUXDB_INIT_PASSWORD=some-password
|
||||||
|
DOCKER_INFLUXDB_INIT_ORG=someOrganization
|
||||||
|
DOCKER_INFLUXDB_INIT_BUCKET=initial-bucket
|
||||||
|
DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=some-admin-token
|
|
@ -8,7 +8,8 @@ NixOS on WSL (felia-1). This deployment works on Docker WSL of Felia node.
|
||||||
|
|
||||||
## How to apply changes
|
## How to apply changes
|
||||||
|
|
||||||
The current way to apply the changes is to push to Felia's git server and
|
- push changes
|
||||||
`cloudflare-nginx/scripts/reload_nginx.sh` on a Docker client that connected to Felia
|
- `docker compose up -d`
|
||||||
|
- `cloudflare-nginx/scripts/reload_nginx.sh` on a Docker client that connected to Felia
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,7 @@ server {
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://c4c-secret-manager-vault-1:8200;
|
proxy_pass http://c4c-secret-manager-vault-1:8200;
|
||||||
|
# proxy_pass http://influxdb-influxdb-1:8086;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
|
|
@ -0,0 +1,27 @@
|
||||||
|
# NOTE: Felia is under Cox ISP, which blocks port 80 anyways.
|
||||||
|
# we're just going to leave it like this for now
|
||||||
|
# server {
|
||||||
|
# listen 80;
|
||||||
|
# listen [::]:80;
|
||||||
|
# server_name localhost;
|
||||||
|
# return 302 https://$server_name$request_uri;
|
||||||
|
# }
|
||||||
|
|
||||||
|
server {
|
||||||
|
# SSL configuration
|
||||||
|
listen 443 ssl http2;
|
||||||
|
listen [::]:443 ssl http2;
|
||||||
|
|
||||||
|
include /etc/nginx/ssl_params;
|
||||||
|
|
||||||
|
server_name influxdb.felia.cloud;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
# proxy_pass http://localhost:8086;
|
||||||
|
proxy_pass http://influxdb-influxdb-1:8086;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue