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):
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;
}
```
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
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:For a future dive into this: https://dlukes.github.io/flask-wsgi-url-prefix.html
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 agoFollowed the tutorial, it works!! See
db7bb5bfce