2 Commits

Author SHA1 Message Date
03f0b41ae6 testing 2022-12-24 02:19:50 -05:00
c67a39982e Option to enable websockets for the noVNC console 2022-12-06 00:15:10 -05:00
9 changed files with 7 additions and 82 deletions

10
.gitignore vendored
View File

@@ -1,13 +1,3 @@
.vagrant .vagrant
.playbook .playbook
/*.yml
/*.yaml
!backup.yml
!moxie.yml
!docker.yml
!dockerbox.yml
!hypervisor.yml
!minecraft.yml
!proxy.yml
!unifi.yml
/environments/ /environments/

View File

@@ -8,7 +8,6 @@
- docker - docker
- traefik - traefik
- nextcloud - nextcloud
- gitea
- jenkins - jenkins
- prometheus - prometheus
- nginx - nginx

View File

@@ -10,4 +10,3 @@
- docker - docker
- gitea - gitea
- bitwarden - bitwarden
- kutt

View File

@@ -1,17 +1,3 @@
# Copyright (C) 2020 Kris Lamoureux
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
- name: Install Docker Box Server - name: Install Docker Box Server
hosts: dockerhosts hosts: dockerhosts
become: true become: true

3
roles/.gitignore vendored
View File

@@ -1,14 +1,11 @@
# Sort roles: tail -n +6 roles/.gitignore | sort
/* /*
!.gitignore !.gitignore
!requirements.yml !requirements.yml
# roles
!base*/ !base*/
!bitwarden*/ !bitwarden*/
!docker*/ !docker*/
!gitea*/ !gitea*/
!jenkins*/ !jenkins*/
!kutt*/
!libvirt*/ !libvirt*/
!mariadb*/ !mariadb*/
!minecraft*/ !minecraft*/

View File

@@ -1,5 +1,5 @@
- name: Reboot host - name: Reboot host
reboot: ansible.builtin.reboot:
msg: "Reboot initiated by Ansible" msg: "Reboot initiated by Ansible"
connect_timeout: 5 connect_timeout: 5
listen: reboot_host listen: reboot_host

View File

@@ -1,16 +0,0 @@
- name: Create Kutt directory
file:
path: "{{ kutt_root }}"
state: directory
- name: Install Kutt's docker-compose file
template:
src: docker-compose.yml.j2
dest: "{{ kutt_root }}/docker-compose.yml"
notify: restart_kutt
- name: Install Kutt's docker-compose variables
template:
src: compose-env.j2
dest: "{{ kutt_root }}/.env"
notify: restart_kutt

View File

@@ -1,36 +0,0 @@
version: "3.7"
services:
kutt:
image: kutt/kutt:${kutt_version:-latest}
container_name: ${kutt_name:-kutt}
depends_on:
- postgres
- redis
command: ["./wait-for-it.sh", "postgres:5432", "--", "npm", "start"]
ports:
- ${kutt_web:-3000}:3000
environment:
DB_HOST: ${kutt_dbhost:-postgres}
DB_NAME: ${kutt_dbname:-kutt}
DB_USER: ${kutt_dbuser:-kutt}
DB_PASSWORD: ${kutt_dbpass}
REDIS_HOST: ${kutt_redis:-redis}
redis:
image: redis:${redis_version:-6.0-alpine}
volumes:
- {{ redis_volume }}:/data
postgres:
image: postgres:${postgres_version:-12-alpine}
environment:
POSTGRES_USER: ${kutt_dbuser:-kutt}
POSTGRES_PASSWORD: ${kutt_dbpass}
POSTGRES_DB: ${kutt_dbhost:-postgres}
volumes:
- {{ postgres_volume }}:/var/lib/postgresql/data
volumes:
{{ redis_volume }}:
{{ postgres_volume }}:

View File

@@ -46,6 +46,12 @@ server {
proxy_pass {{ item.proxy_pass }}; proxy_pass {{ item.proxy_pass }};
{% if item.proxy_ssl_verify is defined and item.proxy_ssl_verify is false %} {% if item.proxy_ssl_verify is defined and item.proxy_ssl_verify is false %}
proxy_ssl_verify off; proxy_ssl_verify off;
{% endif %}
{% if item.websockets is defined and item.websockets %}
proxy_http_version 1.1;
proxy_set_header Connection $http_connection;
proxy_set_header Origin http://$host;
proxy_set_header Upgrade $http_upgrade;
{% endif %} {% endif %}
} }
} }