diasporadiaries

a platform for writing stories with personal accounts and messages
git clone https://git.parazyd.org/diasporadiaries
Log | Files | Refs | Submodules | README | LICENSE

config.py (1072B)


      1 # Copyright (c) 2019 Ivan Jelincic <parazyd@dyne.org>
      2 #
      3 # This file is part of diasporadiaries
      4 #
      5 # This program is free software: you can redistribute it and/or modify
      6 # it under the terms of the GNU Affero General Public License as published by
      7 # the Free Software Foundation, either version 3 of the License, or
      8 # (at your option) any later version.
      9 #
     10 # This program is distributed in the hope that it will be useful,
     11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 # GNU Affero General Public License for more details.
     14 #
     15 # You should have received a copy of the GNU Affero General Public License
     16 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
     17 """
     18 Configuration file
     19 """
     20 from threading import BoundedSemaphore
     21 
     22 # The secret key for flask-login.
     23 SECRET_KEY = 'super-secret'
     24 
     25 # Path to the sqlite database.
     26 DB_PATH = './stories.db'
     27 
     28 # Set a BoundedSemaphore to 1. Since sqlite can't do async writes, we have to
     29 # control it with something.
     30 sem = BoundedSemaphore(1)