1
0
Fork 0
mirror of https://github.com/Findus23/acronomy.git synced 2024-09-19 15:33:45 +02:00

setting fixes

This commit is contained in:
Lukas Winkler 2020-06-01 12:54:01 +02:00
parent 18813f3629
commit b4738c50cf
Signed by: lukas
GPG key ID: 54DE4D798D244853
2 changed files with 3 additions and 5 deletions

View file

@ -20,7 +20,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# See https://docs.djangoproject.com/en/3.0/howto/deployment/checklist/
ALLOWED_HOSTS = ["127.0.0.1", "acronomy.lw1.at"]
ALLOWED_HOSTS = ["127.0.0.1", "localhost", "acronomy.lw1.at"]
# Application definition
@ -120,8 +120,6 @@ STATICFILES_DIRS = [
os.path.join(BASE_DIR, 'node_modules', '@yaireo', 'tagify', 'dist'),
]
STATIC_ROOT = "/srv/server/acronomy/static"
INTERNAL_IPS = [
'127.0.0.1',
@ -129,13 +127,13 @@ INTERNAL_IPS = [
TAGGIT_CASE_INSENSITIVE = True
SECURE_SSL_REDIRECT = True
SECURE_BROWSER_XSS_FILTER = True
SECURE_CONTENT_TYPE_NOSNIFF = True
X_FRAME_OPTIONS = 'DENY'
SECURE_REFERRER_POLICY = "origin-when-cross-origin"
if Production:
SECURE_SSL_REDIRECT = True
SECURE_HSTS_SECONDS = 60 * 60 * 24 * 365
SECURE_HSTS_INCLUDE_SUBDOMAINS = True
SESSION_COOKIE_SECURE = True

View file

@ -35,7 +35,7 @@
<h5 class="card-title">{{ link.title }}</h5>
{#<p class="card-text">{{ link.extract_html|safe }}</p>#}
<p class="card-text">{{ link.extract }}</p>
<a href="{{ link.url }}" class="btn btn-primary stretched-link">
<a href="{{ link.url }}" class="btn btn-primary">
Read on Wikipedia
</a>
<a href="https://en.wikipedia.org/wiki/Wikipedia:Text_of_Creative_Commons_Attribution-ShareAlike_3.0_Unported_License"