Make it easier to run octomode with an URL prefix (eg. mydomain.org/octomode/) #21

Closed
opened 1 year ago by mb · 2 comments
mb commented 1 year ago
Owner

Octomode does not run in with an URL prefix (eg. https://mydomain.org/octomode/)

main application

...

Not sure how to solve this, other then adding everywhere a VAR (eg APP_ROOT = "/octomode")... but this breaks octomode when you want to run it locally...

static files

This fixes the routing of the static folder, but it would be nice if you can change this in the configuration file (the .env file):

APP = Flask(__name__, static_url_path="/octomode/static")

in combination with this nginx setting:

        location /octomode/static {
                alias /var/www/octomode/static/;
                autoindex off;
        }
Octomode does not run in with an URL prefix (eg. https://mydomain.org/octomode/) **main application** ... Not sure how to solve this, other then adding everywhere a VAR (eg APP_ROOT = "/octomode")... but this breaks octomode when you want to run it locally... **static files** This fixes the routing of the static folder, but it would be nice if you can change this in the configuration file (the `.env` file): `APP = Flask(__name__, static_url_path="/octomode/static")` in combination with this `nginx` setting: ``` location /octomode/static { alias /var/www/octomode/static/; autoindex off; } ```
mb commented 1 year ago
Poster
Owner
For a future dive into this: https://dlukes.github.io/flask-wsgi-url-prefix.html
mb changed title from Make it easier to run octomode on a subfolder (eg. mydomain.org/octomode/) to Make it easier to run octomode with an URL prefix (eg. mydomain.org/octomode/) 1 year ago
mb commented 1 year ago
Poster
Owner

Followed the tutorial, it works!! See db7bb5bfce

Followed the tutorial, it works!! See db7bb5bfcecf0de44abcede57c1909dba706d3f6
mb closed this issue 1 year ago
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.