Commit 013286b8 authored by kaiyou's avatar kaiyou
Browse files

Rename the freeposte/mailu directory and database

parent 4988a05a
Most contributors are listed on Github at:
https://github.com/kaiyou/freeposte.io/graphs/contributors
https://github.com/Mailu/Mailu/graphs/contributors
If you contribute time, code or resources to the project, feel free to add
your name, pseudonym, and any contact information you feel is relevant to
......
MIT License
Copyright (c) 2016 All Freeposte.io contributors at the date
Copyright (c) 2016 All Mailu contributors at the date
This software consists of voluntary contributions made by multiple individuals.
For exact contribution history, see the revision history available at
https://github.com/kaiyou/freeposte.io
https://github.com/Mailu/Mailu
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
......
......@@ -3,13 +3,13 @@ FROM python:3
RUN mkdir -p /app
WORKDIR /app
COPY freeposte ./freeposte
COPY mailu ./mailu
COPY migrations ./migrations
COPY manage.py .
COPY requirements.txt .
COPY start.sh /start.sh
RUN pip install -r requirements.txt
RUN pybabel compile -d freeposte/translations
RUN pybabel compile -d mailu/translations
CMD ["/start.sh"]
from freeposte import app
from mailu import app
import sys
import tabulate
......
......@@ -14,12 +14,12 @@ import docker
app = flask.Flask(__name__, static_url_path='/admin/app_static')
default_config = {
'SQLALCHEMY_DATABASE_URI': 'sqlite:////data/freeposte.db',
'SQLALCHEMY_DATABASE_URI': 'sqlite:////data/main.db',
'SQLALCHEMY_TRACK_MODIFICATIONS': False,
'SECRET_KEY': 'changeMe',
'DOCKER_SOCKET': 'unix:///var/run/docker.sock',
'HOSTNAME': 'mail.freeposte.io',
'DOMAIN': 'freeposte.io',
'HOSTNAME': 'mail.mailu.io',
'DOMAIN': 'mailu.io',
'POSTMASTER': 'postmaster',
'DEBUG': False,
'BOOTSTRAP_SERVE_LOCAL': True,
......@@ -49,7 +49,7 @@ manager.add_command('db', flask_migrate.MigrateCommand)
dockercli = docker.Client(base_url=app.config['DOCKER_SOCKET'])
# Finally setup the blueprint and redirect /
from freeposte import admin
from mailu import admin
app.register_blueprint(admin.app, url_prefix='/admin')
@app.route("/")
......
from flask import Blueprint
from freeposte import login_manager, db
from mailu import login_manager, db
import flask_login
......@@ -10,7 +10,7 @@ app = Blueprint(
static_folder='static')
# Import models
from freeposte.admin import models
from mailu.admin import models
# Register the login components
login_manager.login_view = "admin.login"
......@@ -21,7 +21,7 @@ def inject_user():
return dict(current_user=flask_login.current_user)
# Import views
from freeposte.admin.views import \
from mailu.admin.views import \
admins, \
managers, \
base, \
......
from freeposte.admin import db, models, forms
from mailu.admin import db, models, forms
import flask
import flask_login
......
from freeposte.admin import db, dkim
from freeposte import app
from mailu.admin import db, dkim
from mailu import app
from sqlalchemy.ext import declarative
from passlib import context
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment