Skip to content
Snippets Groups Projects
Commit 891e1e09 authored by Nathan Rodet's avatar Nathan Rodet
Browse files

Added configuration

parent a7815aa8
No related branches found
No related tags found
Loading
Pipeline #49229 passed
...@@ -22,20 +22,20 @@ write_files: ...@@ -22,20 +22,20 @@ write_files:
color: 4292030255 color: 4292030255
is_proxy: true is_proxy: true
host: code-%atrium_count_index% host: code-%atrium_count_index%
target: %atrium_private_ip%:8080 target: localhost:8080
- id: 2 - id: 2
name: Desktop %atrium_count_index% name: Desktop %atrium_count_index%
icon: web_asset icon: web_asset
color: 4292030255 color: 4292030255
is_proxy: true is_proxy: true
host: desktop-%atrium_count_index% host: desktop-%atrium_count_index%
target: %atrium_private_ip%:8081 target: localhost:8081
path: /root/atrium.yaml path: /root/atrium.yaml
# Code-server config file # Code-server config file
- content: | - content: |
bind-addr: 0.0.0.0:8080 bind-addr: 0.0.0.0:8080
auth: password auth: password
password %user_password% password: %user_password%
cert: false cert: false
path: /root/config.yaml path: /root/config.yaml
...@@ -54,12 +54,11 @@ runcmd: ...@@ -54,12 +54,11 @@ runcmd:
# Install Atrium # Install Atrium
# #
- "mkdir -p /root/atrium/data && mkdir -p /root/atrium/letsencrypt_cache" - "mkdir -p /root/atrium/data && mkdir -p /root/atrium/letsencrypt_cache"
- "chown -Rf 1000:1000 /root/atrium"
- 'sed -i "s/%atrium_hostname%/$(scw-userdata atrium_hostname)/g" /root/atrium.yaml'
- 'sed -i "s/%atrium_letsencrypt_email%/$(scw-userdata atrium_letsencrypt_email)/g" /root/atrium.yaml' - 'sed -i "s/%atrium_letsencrypt_email%/$(scw-userdata atrium_letsencrypt_email)/g" /root/atrium.yaml'
- 'sed -i "s/%atrium_count_index%/$(scw-userdata atrium_count_index)/g" /root/atrium.yaml' - 'sed -i "s/%atrium_count_index%/$(scw-userdata atrium_count_index)/g" /root/atrium.yaml'
- 'sed -i "s/%atrium_private_ip%/$(scw-userdata atrium_private_ip)/g" /root/atrium.yaml' - 'sed -i "s/%atrium_private_ip%/$(scw-userdata atrium_private_ip)/g" /root/atrium.yaml'
- "mv /root/atrium.yaml /root/atrium/atrium.yaml" - "mv /root/atrium.yaml /root/atrium/atrium.yaml"
- "chown -Rf 1000:1000 /root/atrium"
# #
# Run Atrium Container # Run Atrium Container
# #
...@@ -78,4 +77,4 @@ runcmd: ...@@ -78,4 +77,4 @@ runcmd:
# #
# Run Webtop Container # Run Webtop Container
# #
- "docker run -d --name=webtop --security-opt seccomp=unconfined -e PUID=0 -e PGID=0 -e TZ=Europe/Paris -e SUBFOLDER=/ -e KEYBOARD=fr-fr-azerty -e AUTO_LOGIN=false -p 8081:3000 -v /root/webtop_data/:/config -v /var/run/docker.sock:/var/run/docker.sock --shm-size=8gb --cap-add=NET_ADMIN --privileged --restart unless-stopped --sysctl net.ipv6.conf.all.disable_ipv6=0 lscr.io/linuxserver/webtop:ubuntu-xfce" - "docker run -d --name=webtop --security-opt seccomp=unconfined -e PIAUSER=user -e PIAPASS=$(scw-userdata user_password) -e PUID=0 -e PGID=0 -e TZ=Europe/Paris -e SUBFOLDER=/ -e KEYBOARD=fr-fr-azerty -e AUTO_LOGIN=false -p 8081:3000 -v /root/webtop_data/:/config -v /var/run/docker.sock:/var/run/docker.sock --shm-size=8gb --cap-add=NET_ADMIN --privileged --restart unless-stopped --sysctl net.ipv6.conf.all.disable_ipv6=0 lscr.io/linuxserver/webtop:ubuntu-xfce"
\ No newline at end of file
...@@ -63,6 +63,11 @@ resource "scaleway_instance_security_group" "www" { ...@@ -63,6 +63,11 @@ resource "scaleway_instance_security_group" "www" {
port = "8080" port = "8080"
} }
inbound_rule {
action = "accept"
port = "8081"
}
inbound_rule { inbound_rule {
action = "accept" action = "accept"
port = "443" port = "443"
...@@ -83,7 +88,6 @@ resource "scaleway_instance_server" "user_instance_server" { ...@@ -83,7 +88,6 @@ resource "scaleway_instance_server" "user_instance_server" {
security_group_id = scaleway_instance_security_group.www.id security_group_id = scaleway_instance_security_group.www.id
user_data = { user_data = {
atrium_private_ip = scaleway_instance_ip.public_ip[count.index].address
atrium_count_index = count.index atrium_count_index = count.index
atrium_hostname = scaleway_domain_record.subdomain_record[count.index].name atrium_hostname = scaleway_domain_record.subdomain_record[count.index].name
atrium_letsencrypt_email = var.LETSENCRYPT_EMAIL atrium_letsencrypt_email = var.LETSENCRYPT_EMAIL
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment