Browse Source

Some fixes

pull/1/head
squeaky otter 12 months ago
parent
commit
626199e590
Signed by: dashie GPG Key ID: C2D57B325840B755
6 changed files with 20 additions and 6 deletions
  1. +7
    -1
      README.md
  2. +10
    -0
      api/commands/system.py
  3. +0
    -3
      api/config/config.py
  4. +1
    -1
      api/config/production_secret_sample.py
  5. +0
    -0
      dist/omnomnomnom-web.service
  6. +2
    -1
      dist/vhost.nginx

+ 7
- 1
README.md View File

@ -35,4 +35,10 @@ exit
VHost and service install, as root:
```
cp /home/omnomnomnom/omnomnomnom/dist/vhost.nginx /etc/nginx/sites-available/omnomnomnom
$EDITOR /etc/nginx/sites-available/omnomnomnom
$EDITOR /etc/nginx/sites-available/omnomnomnom
# change what you need to change
cp /home/omnomnomnom/omnomnomnom/dist/omnomnomnom-web.service /etc/systemd/system/
$EDITOR /etc/systemd/system/
# change paths if needed
systemctl enable omnomnomnom-web
systemctl start omnomnomnom-web

+ 10
- 0
api/commands/system.py View File

@ -4,6 +4,7 @@ from flask.cli import with_appcontext
from flask_mail import Message
from flask import render_template, current_app
import texttable
from pprint import pprint as pp
@click.group()
@ -14,6 +15,15 @@ def system():
pass
@system.command(name="config")
@with_appcontext
def config():
"""
Dump config
"""
pp(current_app.config)
@system.command(name="test-email")
@click.option("--email", prompt=True, help="Email to send the test to")
@with_appcontext


+ 0
- 3
api/config/config.py View File

@ -127,9 +127,6 @@ class BaseConfig(object):
CELERY_BROKER_URL = os.getenv("CELERY_BROKER_URL", "redis://127.0.0.1:6379/0")
CELERY_RESULT_BACKEND = os.getenv("CELERY_RESULT_BACKEND", "redis://127.0.0.1:6379/0")
# ActivityPub stuff
AP_ENABLED = bool_env("AP_ENABLED", False)
# Sources of that instance, should be your repos if forked
SOURCES_REPOSITORY_URL = os.getenv("SOURCES_REPOSITORY_URL", "https://github.com/dashie/omnopmnomnom")


+ 1
- 1
api/config/production_secret_sample.py View File

@ -1,4 +1,4 @@
from .development import Config as BaseConfig
from .config import Config as BaseConfig
class Config(BaseConfig):


dist/omnomnomnom.service → dist/omnomnomnom-web.service View File


+ 2
- 1
dist/vhost.nginx View File

@ -16,7 +16,8 @@ server {
add_header Strict-Transport-Security max-age=15768000;
location / {
alias /home/omnomnomnom/omnomnomnom/front/dist;
index index.html index.htm;
root /home/omnomnomnom/omnomnomnom/front/dist;
}
location /api {


Loading…
Cancel
Save