Compare commits

...

3 Commits
blog ... master

Author SHA1 Message Date
pegasust 1acfede68f docs: update how to commit cloudflare changes to Felia 2022-12-07 21:10:23 +00:00
pegasust 263dc057de influxdb to container 2022-12-07 20:55:46 +00:00
pegasust 18edc81ac9 add felia.cloud 2022-12-07 20:45:19 +00:00
22 changed files with 77 additions and 3 deletions

4
apps/influxdb/.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
*.env
!*.env.example
influx-configs

View File

@ -0,0 +1,6 @@
[default]
url = "http://localhost:8086"
token = "some-admin-token"
org = "someOrganization"
active = true

View File

@ -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

View File

@ -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

6
cloudflare-nginx/README.md Normal file → Executable file
View File

@ -8,7 +8,7 @@ NixOS on WSL (felia-1). This deployment works on Docker WSL of Felia node.
## How to apply changes
The current way to apply the changes is to push to Felia's git server and
`cloudflare-nginx/scripts/reload_nginx.sh` on a Docker client that connected to Felia
- Push changes
- Access Felia (Windows), pull the changes
- `cloudflare-nginx/scripts/reload_nginx.sh` on a Docker client that connected to Felia

0
cloudflare-nginx/docker-compose.yml Normal file → Executable file
View File

1
cloudflare-nginx/nginx/conf.d/c4c.pegasust.com.conf Normal file → Executable file
View File

@ -25,6 +25,7 @@ server {
location / {
proxy_pass http://c4c-secret-manager-vault-1:8200;
# 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;

0
cloudflare-nginx/nginx/conf.d/default.conf Normal file → Executable file
View File

0
cloudflare-nginx/nginx/conf.d/felia.pegasust.com.conf Normal file → Executable file
View File

View File

@ -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;
}
}

0
cloudflare-nginx/nginx/conf.d/localhost.conf Normal file → Executable file
View File

View File

0
cloudflare-nginx/nginx/conf.d/pegasust.com.conf Normal file → Executable file
View File

0
cloudflare-nginx/nginx/fastcgi_params Normal file → Executable file
View File

0
cloudflare-nginx/nginx/mime.types Normal file → Executable file
View File

0
cloudflare-nginx/nginx/nginx.conf Normal file → Executable file
View File

0
cloudflare-nginx/nginx/scgi_params Normal file → Executable file
View File

0
cloudflare-nginx/nginx/ssl_params Normal file → Executable file
View File

0
cloudflare-nginx/nginx/uwsgi_params Normal file → Executable file
View File

View File

0
cloudflare-nginx/www/localhost/html/index.html Normal file → Executable file
View File

0
cloudflare-nginx/www/pegasust.com/html/index.html Normal file → Executable file
View File