decentral1se
bb23a5c3a9
chore: squash extra whitespace
12 months ago
mb
21b2522a65
adding application root back in loop again, as the HTML and PDF views break when using an URL prefix.....
2 years ago
mb
db7bb5bfce
adding support for gunicorn, to allow url's with prefixes
2 years ago
mb
ecd7860676
make octomode.vvvvvvaria.org/name/ work with a trailing slash
2 years ago
mb
39bdedede7
add trailing slashes to routes
2 years ago
mb
c5f8aa8beb
switching to development mode
2 years ago
mb
d07270ec9d
adding dotenv to requirements, switching to using .env file for the settings
2 years ago
mb
40646687a7
typo in line that checks if the octomode API key env variable is set
2 years ago
decentral1se
faa4c25ccc
fix: use PAD_URL in template files
2 years ago
decentral1se
42e408859b
refactor!: unify slash handling
It is hard to remember to add `/` at the end of the URL when configuring
a new etherpad URL. Also, web server proxies tend to do weird stuff when
you assume that you have a slash on the end of each URL.
So, I took a look at how to avoid doing that. It turns out that both
urljoin / os.path.join are kinda bad for handling URL building. Also,
APPLICATION_ROOT didn't seem that necessary since Flask knows what to do
with a `/` at the start of a URL, so I dropped it.
I think this doesn't break anything!
2 years ago
decentral1se
8b4d0905e2
chore: auto-formatter removes tabs/whitespace
2 years ago
decentral1se
d9800c5223
refactor: override config from env
Closes varia/octomode#8
2 years ago
manetta
b384354e95
typo in path.join
3 years ago
manetta
0e7a9c1d45
adding application_root to preview/pdf iframe urls
3 years ago
manetta
44818d981c
adding application_root urls + default metadata
3 years ago
manetta
f7105a30bf
rewriting redirects
3 years ago
manetta
4bb1c14abe
removing app_root in flask routes
3 years ago
manetta
7fb3e4adee
adding missing url_for
3 years ago
manetta
4d6c97fb46
adding application_root to post form in the start screen
3 years ago
manetta
a30972e87d
removing the workaround, causes error on octomode that is installed at the varia server
3 years ago
manetta
58f4cda11a
typo
3 years ago
manetta
0a60da6fea
adding APPLICATION_ROOT to config + workaround for url mapping for non-root URL sitatuions
3 years ago
mb
cedf8058c3
disabled bleach in import statements
3 years ago
manetta
de8027f68a
escape() and bleach.clean() are disabled... sanitizing does not render the html at all anymore...
3 years ago
manetta
7db66e0f6b
adding escape() and Markup()
3 years ago
manetta
e257d5359e
using md metadata title field as document name + using pypandoc for the markdown-to-html convertion now to support 'extra' features such as {.classname}
3 years ago
manetta
925ecb7562
template is out of the interface, added markdown and html sanitizers (wip)
3 years ago
manetta
0742986e8f
pandoc template issue solved: templates can be read from an URL :); octomode is ready to be used in multiple sessions at the same time now
3 years ago
manetta
975b9912bc
bending pad2pdf into octomode
3 years ago