Compare commits
7 Commits
v0.0.6h-jl
...
v0.0.6m-jl
Author | SHA1 | Date | |
---|---|---|---|
0624f3da72 | |||
33a9c5e8f6 | |||
6f25e4caa4 | |||
289877ce89 | |||
08afef422c | |||
47d6805612 | |||
57780388e7 |
@ -18,7 +18,7 @@
|
||||
# - firewall-vpn-l
|
||||
- wireguard-l
|
||||
# - x509-l
|
||||
- fw-ferm
|
||||
- post
|
||||
- ssh-cli
|
||||
- syslog-cli
|
||||
- post
|
||||
- fw-ferm
|
||||
|
@ -1,47 +0,0 @@
|
||||
# -*- shell-script -*-
|
||||
|
||||
@def $DEV_VPN= wg0;
|
||||
|
||||
table filter {
|
||||
chain INPUT {
|
||||
policy DROP;
|
||||
|
||||
# connection tracking
|
||||
mod state state INVALID DROP;
|
||||
mod state state (ESTABLISHED RELATED) ACCEPT;
|
||||
|
||||
# allow local connections
|
||||
interface lo ACCEPT;
|
||||
interface $DEV_VPN{
|
||||
# respond to ping
|
||||
proto icmp icmp-type echo-request ACCEPT;
|
||||
# disallow ssh
|
||||
saddr proto tcp dport ssh DROP;
|
||||
}
|
||||
}#FIN INPUT
|
||||
|
||||
# outgoing connections are not limited
|
||||
chain OUTPUT {
|
||||
policy ACCEPT;
|
||||
interface $DEV_VPN{
|
||||
# allow ssh
|
||||
daddr proto tcp dport ssh ACCEPT;
|
||||
# respond to ping
|
||||
proto icmp icmp-type echo-request ACCEPT;
|
||||
}
|
||||
}#FIN OUTPUT
|
||||
|
||||
chain FORWARD {
|
||||
policy ACCEPT;
|
||||
|
||||
# connection tracking
|
||||
mod state state INVALID DROP;
|
||||
mod state state (ESTABLISHED RELATED) ACCEPT;
|
||||
|
||||
# connections from the internal net to the internet or to other
|
||||
# internal nets are allowed
|
||||
interface $DEV_VPN ACCEPT;
|
||||
|
||||
# the rest is dropped by the above policy
|
||||
}#FIN FO
|
||||
}
|
@ -50,15 +50,7 @@ table filter {
|
||||
|
||||
chain FORWARD {
|
||||
policy ACCEPT;
|
||||
|
||||
interface $DEV_VPN{
|
||||
# respond to ping
|
||||
proto icmp icmp-type echo-request ACCEPT;
|
||||
# disallow ssh
|
||||
saddr($DEV_VPN) proto tcp dport ssh DROP;
|
||||
# allow ssh
|
||||
daddr($DEV_VPN) proto tcp dport ssh ACCEPT;
|
||||
|
||||
proto icmp icmp-type echo-request ACCEPT;
|
||||
}
|
||||
# connection tracking
|
||||
mod state state INVALID DROP;
|
||||
|
139
roles/peertube/files/values.yaml
Normal file
139
roles/peertube/files/values.yaml
Normal file
@ -0,0 +1,139 @@
|
||||
replicaCount: 1
|
||||
image:
|
||||
repository: chocobozzz/peertube
|
||||
pullPolicy: IfNotPresent
|
||||
tag: "v5.0.1-bullseye"
|
||||
|
||||
imagePullSecrets: []
|
||||
nameOverride: ""
|
||||
fullnameOverride: ""
|
||||
|
||||
serviceAccount:
|
||||
create: false
|
||||
annotations: {}
|
||||
name: ""
|
||||
podAnnotations: {}
|
||||
podSecurityContext: {}
|
||||
securityContext: {}
|
||||
|
||||
service:
|
||||
type: ClusterIP
|
||||
port: 9000
|
||||
nginxPort: 9001
|
||||
|
||||
## default config for postgresql should work, but feel free to modify it if required.
|
||||
# must stay consistent with peertube configuration, otherwise peertube will crash
|
||||
postgresql:
|
||||
enabled: true
|
||||
primary:
|
||||
persistence:
|
||||
enabled: true
|
||||
existingClaim: "pvc-postgres"
|
||||
global:
|
||||
postgresql:
|
||||
auth:
|
||||
postgrePassword: "admin"
|
||||
username: "user"
|
||||
password: "user"
|
||||
database: "peertube"
|
||||
|
||||
## the main list of variables tha will be applied in the peertube container
|
||||
# any error or misconfiguration will make peertube crash.
|
||||
peertube:
|
||||
env:
|
||||
dbUser: user # must be consistent with postgresql configuration
|
||||
dbPasswd: user # must be consistent with postgresql configuration
|
||||
dbSsl: false # disabled by default WARNING: ssl connection feature not tested, use at your own risk
|
||||
dbHostname: peertube-postgresql # must be consistent with postgresql configuration
|
||||
webHostname: peertube # must be changed to your local setup
|
||||
secret: b2753b0f37444974de0e81f04815e6a889fcf8960bd203a01b624d8fa8a37683
|
||||
smtpHostname: peertube-mail # must be consistent with mail configuration
|
||||
smtpPort: 587 # must be consistent with mail configuration
|
||||
smtpFrom: noreply@lan.lan # not configured by default, add something meaningfull if you want
|
||||
smtpTls: false # disabled by default WARNING: tls connection feature not tested, use at your own risk
|
||||
smtpDisableStartTls: false # unless crashes related to tls/ssl, this should be unchanged
|
||||
adminEmail: root@localhost.lan # use this if you want peopleto be able to reach you
|
||||
redisHostname: peertube-redis-master # must be consistent with redis configuration
|
||||
redisAuth: peertube # must be consistent with redis configuration
|
||||
app:
|
||||
userCanRegister: true # control if people can register by themselves
|
||||
rootPasswd: rootroot # CHANGE THIS! the default admin username is 'root' this variable define the password
|
||||
## the next section configure at wich quality videos will be transcoded
|
||||
transcoding360: true
|
||||
transcoding480: true
|
||||
transcoding720: true
|
||||
transcoding1080: false
|
||||
transcoding2160: false
|
||||
|
||||
## the configuration of the postfix server called 'mail' here
|
||||
# change these settings if you know what you are doing
|
||||
mail:
|
||||
enbled: true
|
||||
config:
|
||||
general:
|
||||
ALLOWED_SENDER_DOMAINS: # should be the same as your web domain
|
||||
DKIM_AUTOGENERATE: "yes"
|
||||
opendkim:
|
||||
RequireSafeKeys: "no"
|
||||
postfix:
|
||||
smtp_tls_security_level: "secure" # works by default, any other tls level is untested
|
||||
persistence:
|
||||
enabled: false
|
||||
service:
|
||||
port: 587
|
||||
|
||||
## the configuration of the redis server
|
||||
redis:
|
||||
master:
|
||||
persistence:
|
||||
enabled: true
|
||||
existingClaim: "pvc-redis"
|
||||
replica:
|
||||
persistence:
|
||||
enabled: true
|
||||
existingClaim: "pvc-redis"
|
||||
auth:
|
||||
enbled: true
|
||||
password: "peertube"
|
||||
|
||||
## ingress configuration is very specific this part must be configured or else you'll get 503 or 404 errors
|
||||
ingress:
|
||||
enabled: false
|
||||
className: ""
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: nginx
|
||||
nginx.ingress.kubernetes.io/proxy-body-size: 4G # this caps the size of imported videos, if set low this might prevent you from uploading videos
|
||||
# kubernetes.io/tls-acme: "true"
|
||||
hosts:
|
||||
- host: # your domain here
|
||||
paths:
|
||||
- path: /
|
||||
pathType: ImplementationSpecific
|
||||
tls:
|
||||
# - secretName: chart-example-tls
|
||||
- hosts:
|
||||
- # your domain here
|
||||
|
||||
resources: {}
|
||||
autoscaling:
|
||||
enabled: true
|
||||
minimumReplicas: 3
|
||||
maximumReplicas: 20
|
||||
targetCPUUtilizationPercentage: 90
|
||||
targetMemoryUtilizationPercentage: 75
|
||||
windowSeconds: 120
|
||||
minCPUPercentage: 20
|
||||
minMemoryPercentage: 30
|
||||
|
||||
## this section should be configured to match your needs and available ressources
|
||||
persistence:
|
||||
enabled: true
|
||||
reclaimPolicy: Retain
|
||||
redisVolumeStorage: 1Gi
|
||||
peertubeVolumeStorage: 5Gi
|
||||
postgresqlVolumeStorage: 1Gi
|
||||
accessMode: ReadWriteOnce
|
||||
|
||||
nodeSelector: {}
|
||||
tolerations: []
|
||||
affinity: {}
|
@ -5,7 +5,26 @@
|
||||
- name: installation de k3s...
|
||||
shell: curl -sfL https://get.k3s.io | sh -s - --docker
|
||||
|
||||
- name: activationde k3s au démarrage...
|
||||
systemd:
|
||||
name: k3s
|
||||
enabled: true
|
||||
- name: création du répertoire du dépot peertube...
|
||||
file:
|
||||
path: /root/tools/peertube
|
||||
state: directory
|
||||
mode: '0755'
|
||||
|
||||
- name: clonage du dépot peertube...
|
||||
git:
|
||||
repo: https://github.com/Elam-Monnot/Peertube-helm.git
|
||||
dest: /root/tools/peertube
|
||||
clone: yes
|
||||
|
||||
- name: copie de values.yaml...
|
||||
copy:
|
||||
src: /root/tools/ansible/gsb2023/roles/peertube/files/values.yaml
|
||||
dest: /root/tools/peertube/Peertube-helm/helm/
|
||||
mode: '0644'
|
||||
|
||||
- name: installation de helm...
|
||||
shell: curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
|
||||
|
||||
- name: installation de peertube...
|
||||
shell: helm dependency build /root/tools/peertube/Peertube-helm/helm/ && helm install --create-namesapce -n peertube peertube-gsb
|
||||
|
@ -8,9 +8,10 @@ iface lo inet loopback
|
||||
allow-hotplug enp0s3
|
||||
iface enp0s3 inet static
|
||||
address 192.168.99.120/24
|
||||
gateway 192.168.99.99
|
||||
|
||||
# Réseau n-dmz
|
||||
allow-hotplug enp0s8
|
||||
iface enp0s8 inet static
|
||||
address 192.168.100.20/24
|
||||
|
||||
post-up systemctl start k3s
|
||||
|
Reference in New Issue
Block a user