-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#227 build basic backend deb package #228
Conversation
8864f1b
to
821b204
Compare
91d674a
to
cb6cdb9
Compare
cb6cdb9
to
72a660a
Compare
51f04dc
to
bed47c4
Compare
1460f69
to
f1076df
Compare
f8e20a5
to
e3c31a2
Compare
e3c31a2
to
bf00c12
Compare
@@ -2,11 +2,9 @@ | |||
|
|||
exposed_version=0.28.1 | |||
|
|||
app.postgres.host=localhost | |||
app.postgres.port=5432 | |||
app.postgres.url=jdbc:postgresql://localhost:5432/ehrenamtskarte |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
didn't we have some problems with that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is equivalent to the previous way. I no longer concat the url in java but pass the whole one here.
if (!production) { | ||
cfg.enableDevLogging() | ||
cfg.enableCorsForAllOrigins() | ||
cfg.addStaticFiles("/graphiql", "/graphiql", Location.CLASSPATH) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we disable graphiql in production? I'd probably vote for having it enabled :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a tool for debugging and should not be exposed in production. Also you can always use intellij for sending graphql queries.
Not sure whether this tool is intended for production.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To me, its just a public access to the api, which shouldn't do any harm...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see this more like a standalone application which could be deployed to production. I mean it is like the administration backend. I added it again because there is no problem from security perspective as these are just static files.
<excludeFolder url="file://$MODULE_DIR$/backend" /> | ||
<excludeFolder url="file://$MODULE_DIR$/frontend" /> | ||
</content> | ||
<content url="file://$MODULE_DIR$" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm... I think these changes should not be necessary....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They also do not harm :) i tested this. No differnce with or without these changes.
|
||
sub_filter_once off; | ||
sub_filter_types application/json; | ||
sub_filter "https://tiles.staging.ehrenamtskarte.app" "http://localhost:5002"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is that right for development?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems right. It gets replaced with localhost like before.
docker/reverse_proxy/www/map.html
Outdated
<body> | ||
<div id='map' style='width: 100%; height: 100%;'></div> | ||
<script> | ||
mapboxgl.accessToken = 'pk.eyJ1IjoibWF4YW1tYW5uIiwiYSI6ImNraHlzdGNmejBkaGsycm9hNjJjcWZzdmwifQ.3NaekT5CjDsBnBNdUr1F7g'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whoopsie?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noopsie just an alreadly public key which is not used. Dummy key.
Can be merged from my side. |
I merged this now, for the rest we should create separate tasks |
Does not close issue #227 yet, but is a working intermediate step and prevents all other PRs from getting red.
Builds a basic .deb package containing the built backend and a systemd service file for starting it.