Add up to date deploy instructions
parent
08fd5ee73b
commit
64a4f96db4
@ -0,0 +1,28 @@
|
||||
DEBUG = False
|
||||
SECRET_KEY = ''
|
||||
ALLOWED_HOSTS = ['vpn.ccrypto.org']
|
||||
# REAL_IP_HEADER_NAME = 'X-Real-Ip'
|
||||
ROOT_URL = 'https://vpn.ccrypto.org/'
|
||||
# Where to copy static files
|
||||
STATIC_ROOT = '/home/ccvpn/public/static/'
|
||||
TICKETS_SITE_NAME = 'CCrypto VPN Support'
|
||||
|
||||
#DATABASES = {
|
||||
# 'default': {
|
||||
# 'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
||||
# 'NAME': 'ccvpn3',
|
||||
# 'USER': 'ccvpn3',
|
||||
# 'PASSWORD': '',
|
||||
# 'HOST': 'localhost',
|
||||
# },
|
||||
#}
|
||||
|
||||
#LCORE = {}
|
||||
|
||||
EMAIL_HOST = 'localhost'
|
||||
EMAIL_PORT = 25
|
||||
SERVER_EMAIL = 'support@localhost'
|
||||
DEFAULT_FROM_EMAIL = 'support@localhost'
|
||||
|
||||
PAYMENTS_CURRENCY = ('eur', '€')
|
||||
PAYMENTS_BACKENDS = {}
|
@ -0,0 +1,13 @@
|
||||
server {
|
||||
listen 80 default_server;
|
||||
listen [::]:80 default_server;
|
||||
root /home/ccvpn/public/;
|
||||
server_name vpn.ccrypto.org;
|
||||
set_real_ip_from 10.1.1.1;
|
||||
|
||||
try_files $uri @uwsgiapp;
|
||||
location @uwsgiapp {
|
||||
include uwsgi_params;
|
||||
uwsgi_pass 'unix:///var/lib/uwsgi_ccvpn3.sock';
|
||||
}
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
[uwsgi]
|
||||
master = true
|
||||
processes = 4
|
||||
socket = /var/lib/uwsgi_ccvpn3.sock
|
||||
wsgi-file = /home/ccvpn/ccvpn3/ccvpn/wsgi.py
|
||||
virtualenv = /home/ccvpn/ccvpn3/.venv/
|
||||
chdir = /home/ccvpn/ccvpn3/
|
||||
chown-socket = ccvpn:www-data
|
||||
chmod-socket = 660
|
||||
uid = ccvpn
|
||||
gid = ccvpn
|
||||
plugins = python3
|
||||
harakiri = 60
|
||||
limit-as = 256
|
||||
max-requests = 10000
|
||||
vacuum = true
|
||||
enable-threads = true
|
||||
threads = 2
|
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
|
||||
# sometimes cron lacks $LANG. it can cause unicode issues with python
|
||||
export LANG="en_US.UTF-8"
|
||||
|
||||
# poetry can also be in:
|
||||
# * ~/.local/bin/ (installed with pip)
|
||||
export PATH="$HOME/.local/bin/:$PATH"
|
||||
# * ~/.poetry/bin/ (installed with get-poetry)
|
||||
export PATH="$HOME/.poetry/bin/:$PATH"
|
||||
|
||||
DIR="$(dirname $0)"
|
||||
cd $DIR
|
||||
|
||||
poetry run ./manage.py $@
|
Loading…
Reference in New Issue