Comments (7)
Thank you @hartwork it works exactly as I wanted it to work.
I just had to add the argument in the entrypoint of the Dockerfile:
ENTRYPOINT ["/root/.local/bin/jawanndenn", "--port", "8080", "--host", "0.0.0.0", "--url-prefix", "jawanndenn"]
from jawanndenn.
Hi @JayBeeDe,
interesting problem. I'm up for figuring out some way to make that scenario possible. Could you share the related bits from the nginx config where the subfolder and proxy bits are happening? That would be great to have.
Thanks and best, Sebastian
from jawanndenn.
Hi,
Thank you Sebastian for your quick reply.
The nginx proxy configuration is the same one that I use for the other applications. I can give it to you this evening if you want, but I don't think it is relevant. Indeed, I don't think that url rewriting is a good solution.
What I need is to change the document root folder. To simplify the problem, by taking your screenshot from the github main page, instead of accessing the application via http://127.0.0.1:8080
I want to access it throw
http://127.0.0.1:8080/jawanndenn
Jibi
from jawanndenn.
Hi!
The scenario is clear. Part of the changes needed is easy (and done, see two commits linked below) and part is not (involving in-HTML links). I'll need a good idea for the latter or more energy than right now, first. Those static files probably need to become templates.
If I'd write jawanndenn today, it would be Django rather than bottle and that modification would be easy.
If you happen to know someone who wants to fund a re-write of jawanndenn in Django (and its ORM), please send that person my way! (update: opened #36 for that very topic by now)
Best, Sebastian
from jawanndenn.
@JayBeeDe I have added the missing bits to #35 now. Could you give it a spin? The command line option to look out for is called --url-prefix
.
from jawanndenn.
I have merged #35 now. If it doesn't work as expected please comment here and we'll re-open this bug.
from jawanndenn.
Glad to hear, thanks for the update!
from jawanndenn.
Related Issues (20)
- Add ternary choice "maybe/dunno" HOT 4
- Feature: Allow removing existing votes HOT 6
- Docker image issue HOT 2
- Footer blocks access to voting controls (with many votes) HOT 2
- docker-compose installation results in 'ImportError: No module named main' HOT 3
- Migrate from bottle to Django HOT 1
- [docker] Make Dockerfile and docker-compose.yml run containers as unproviliged user HOT 1
- API ? HOT 14
- Scroll? HOT 3
- Error 500 when pasting JSON with single surrogate characters
- Enable "matchmaking" capabilities. HOT 1
- Footer should include a possibility to insert an impressum HOT 1
- missing rapid-json dependency for pip HOT 3
- "docker-compose up --build" fails with docker-compose 2.x.x (but not 1.x.x) HOT 2
- Where can ALLOWED_HOSTS be changed for testing? HOT 2
- Detailed Installation Instructions HOT 4
- Feature Request: Using images + text as voting options. HOT 1
- Integration with existing Django Sites HOT 6
- handling timezones HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jawanndenn.