This commit is contained in:
muppeth 2021-09-30 11:27:58 +02:00
parent 7ad7ff0225
commit 0e00044d30
5 changed files with 250 additions and 4 deletions

View File

@ -0,0 +1 @@
{"dependencies":[["log4r",[">= 0"]],["concurrent-ruby",["~> 1.0"]],["i18n",[">= 0"]],["micromachine",[">= 2","< 4"]],["vagrant-vbguest",["= 0.30.0"]]],"checksum":"a645b4e3a1a99ba4029691649fc03e4a3b392dfb4e29c7379b4233997d2447e2","vagrant_version":"2.2.18"}

View File

@ -0,0 +1 @@
/home/muppeth/Projects/Disroot/Websites/Website

View File

@ -0,0 +1,9 @@
# This file loads the proper rgloader/loader.rb file that comes packaged
# with Vagrant so that encoded files can properly run with Vagrant.
if ENV["VAGRANT_INSTALLER_EMBEDDED_DIR"]
require File.expand_path(
"rgloader/loader", ENV["VAGRANT_INSTALLER_EMBEDDED_DIR"])
else
raise "Encoded files can't be read outside of the Vagrant installer."
end

70
Vagrantfile vendored Normal file
View File

@ -0,0 +1,70 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
# https://docs.vagrantup.com.
# Every Vagrant development environment requires a box. You can search for
# boxes at https://vagrantcloud.com/search.
config.vm.box = "base"
# Disable automatic box update checking. If you disable this, then
# boxes will only be checked for updates when the user runs
# `vagrant box outdated`. This is not recommended.
# config.vm.box_check_update = false
# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine. In the example below,
# accessing "localhost:8080" will access port 80 on the guest machine.
# NOTE: This will enable public access to the opened port
# config.vm.network "forwarded_port", guest: 80, host: 8080
# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine and only allow access
# via 127.0.0.1 to disable public access
# config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1"
# Create a private network, which allows host-only access to the machine
# using a specific IP.
# config.vm.network "private_network", ip: "192.168.33.10"
# Create a public network, which generally matched to bridged network.
# Bridged networks make the machine appear as another physical device on
# your network.
# config.vm.network "public_network"
# Share an additional folder to the guest VM. The first argument is
# the path on the host to the actual folder. The second argument is
# the path on the guest to mount the folder. And the optional third
# argument is a set of non-required options.
# config.vm.synced_folder "../data", "/vagrant_data"
# Provider-specific configuration so you can fine-tune various
# backing providers for Vagrant. These expose provider-specific options.
# Example for VirtualBox:
#
# config.vm.provider "virtualbox" do |vb|
# # Display the VirtualBox GUI when booting the machine
# vb.gui = true
#
# # Customize the amount of memory on the VM:
# vb.memory = "1024"
# end
#
# View the documentation for the provider you are using for more
# information on available options.
# Enable provisioning with a shell script. Additional provisioners such as
# Ansible, Chef, Docker, Puppet and Salt are also available. Please see the
# documentation for more information about their specific syntax and use.
# config.vm.provision "shell", inline: <<-SHELL
# apt-get update
# apt-get install -y apache2
# SHELL
end

View File

@ -1,7 +1,172 @@
---
title: 'Temporary disabled'
header_image: introverts.jpg
title: 'Domain Linking Form'
header_image: netneutrality.jpg
form:
name: Domain-linking-form
content:
-
type: section
title: User and domain details:
text: "Provide details about your account and domain you want to link to our servers."
underline: true
title_level: h1
fields:
-
name: username
label: 'User Name'
placeholder: 'Enter your Disroot user name'
autofocus: 'on'
autocomplete: 'on'
type: text
validate:
pattern: '[A-Za-z0-9.-]*'
required: true
-
name: Domain
label: 'Your domain'
placeholder: example.com
type: text
validate:
pattern: '[A-Za-z0-9.-]*'
required: true
-
name: xmpp
type: checkbox
label: 'Advanced Do you want to use xmpp chat with your domain? Make sure you are pointing A record to xmpp.disroot.org'
validate:
required: true
-
-
content:
-
type: section
title: Alias information
text: "Using aliases allows you to create multiple identities for your disroot account which can be used with your custom domain *(eg. john@example.com or nickname@example.com)*. Remember that those are still connected to your single account and you can have maximum of 5 per account. If you want to add additional user accounts to make use of your domain, you need to contact us via email or add additional accounts and aliases you want to add to them in description below. Any additional aliases or changes need to be requested by contacting support until automated solution is provided."
underline: true
title_level: h1
fields:
-
name: 'Alias 1'
label: Alias
placeholder: your-alias
type: text
validate:
pattern: '[A-Za-z0-9.-]*'
required: true
-
name: 'Alias 2'
label: 'Second Alias (optional)'
placeholder: your-alias
type: text
validate:
pattern: '[A-Za-z0-9.-]*'
required: false
-
name: 'Alias 3'
label: 'Third Alias (optional)'
placeholder: your-alias
type: text
validate:
pattern: '[A-Za-z0-9.-]*'
required: false
-
name: 'Alias 4'
label: 'Forth Alias (optional)'
placeholder: your-alias
type: text
validate:
pattern: '[A-Za-z0-9.-]*'
required: false
-
name: 'Alias 5'
label: 'Fifth Alias (optional)'
placeholder: your-alias
type: text
validate:
pattern: '[A-Za-z0-9.-]*'
required: false
-
type: display
size: large
label: Donation details
markdown: true
content: "Please provide below details on the donation you have made. Please make sure you do it before you request the domain linking feature. **This information will be removed the moment your request is processed.**"
-
name: contribution
label: 'Contributing via'
placeholder: select
type: select
options:
patreon: Patreon
stripe: 'Stripe (creditcard)'
paypal: Paypal
bank: 'Bank transfer'
faircoin: Faircoin
bitcoin: Bitcoin
validate:
required: true
-
name: amount
label: Amount
placeholder: 'EUR/USD/BTC/etc.'
type: text
validate:
pattern: '[A-Za-z0-9., ]*'
required: true
-
name: frequency
label: Repeated
type: radio
default: monthly
options:
monthly: Monthly
yearly: Yearly
validate:
required: true
-
name: comments
type: textarea
-
name: honeypot
type: honeypot
buttons:
-
type: submit
value: Submit
-
type: reset
value: Reset
process:
-
email:
from: domain-request@disroot.org
to: '{{ form.value.username }}@disroot.org'
subject: '[Disroot] Your domain linking request'
body: '<br><br>Hi {{ form.value.username|e }}, <br><br><strong>Thank you for your contribution to Disroot.org!</strong><br>We truly appreciate your generosity.<br><br>We will review your request and get back to you as soon as we can.</strong><br><br><hr><br><strong>Here is a summary of the received request:</strong><br><br>{% include ''forms/data.html.twig'' %}'
-
email:
from: alias-request@disroot.org
to: '{{ config.plugins.email.to }}'
reply_to: '{{ form.value.username }}@disroot.org'
subject: '[Domain linking request] - {{ form.value.username|e }}'
body: '{% include ''forms/data.html.twig'' %}'
-
save:
fileprefix: feedback-
dateformat: Ymd-His-u
extension: txt
body: '{% include ''forms/data.txt.twig'' %}'
-
message: 'Your domain linking request has been sent!'
-
display: thankyou
---
<h1 class="form-title"> Temporary disabled </h1>
<p class="form-text"> Due to huge backlog in incoming custom requests and work being done to improve our response time, we have decided to temporarily disable this feature.<br>Sorry for the inconvenience and hope to have it up and running again as soon as possible.</p>
<h1 class="form-title"> Domain Linking Request </h1>
<p class="form-text"><strong> Fill in this form if you would like to use your own domain for Email aliases and/or xmpp chat.</strong>
<br><br>
Make sure you followed all the steps needed before you request your domain. Care about your and our time.
We review all pending requests once every week so be patient. We will get back to you as soon as we process your request.
</p>