saierd / docker-etesync Goto Github PK
View Code? Open in Web Editor NEWOmnibus Docker image for the Etebase server. Includes the EteSync web client.
Home Page: https://hub.docker.com/r/dsaier/etebase
Omnibus Docker image for the Etebase server. Includes the EteSync web client.
Home Page: https://hub.docker.com/r/dsaier/etebase
I copied /etc/mime.types
in and killed the top uwsgi process. That fixed it up.
I got as far as to need /api
. Looks like uwsgi is treating /api
as static, was I supposed to setup something else to handle /api
? The /admin
folder also appears to be setup as static.
root /var/www/notes/public_html;
location ~ ^/\.well-known(/|$) {
try_files $uri $uri/ =404;
}
location ~ ^(/precache-manifest|(/admin|/api|/login|/service|/signup|/static)(/|$)|(/|/favicon\.ico|/index\.html|/manifest\.json|/service-worker\.js)$) {
proxy_pass http://172.17.0.3:8080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
location ~ ^/joplin(/|$) {
autoindex on;
auth_basic realm_name;
auth_basic_user_file /etc/nginx/.joplin-credentials.list;
dav_methods PUT DELETE MKCOL COPY MOVE;
dav_ext_methods PROPFIND OPTIONS;
dav_access user:rw group:rw all:r;
client_body_temp_path /tmp/nginx/client-bodies;
client_max_body_size 0;
create_full_put_path on;
}
location ~ ^/websuite(/|$) {
try_files $uri $uri/ =404;
}
location ~ ^/wss(/|$) {
proxy_pass http://unix:/home/srv_websuite/var/warp-dev.sock;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
location ~ .* {
proxy_pass http://unix:/home/srv_websuite/var/warp-dev.sock;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
Using a static password would allow the password to be documented in the readme, so that the docker container can be started without the user needing to read its output for the randomly generated password. The user can then change the default password on login
Command ran:
docker run --name=etesync --restart always -v /opt/etesync:/data -p 8080:3735 dsaier/etesync
Output
Traceback (most recent call last):
File "/opt/etesync/etesync_server/utils.py", line 19, in get_secret_from_file
with open(path, "r") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/data/secret.txt'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/etesync/manage.py", line 22, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", line 325, in execute
settings.INSTALLED_APPS
File "/usr/local/lib/python3.8/site-packages/django/conf/__init__.py", line 79, in __getattr__
self._setup(name)
File "/usr/local/lib/python3.8/site-packages/django/conf/__init__.py", line 66, in _setup
self._wrapped = Settings(settings_module)
File "/usr/local/lib/python3.8/site-packages/django/conf/__init__.py", line 157, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/opt/etesync/etesync_server/settings.py", line 185, in <module>
SECRET_KEY = get_secret_from_file(SECRET_FILE)
File "/opt/etesync/etesync_server/utils.py", line 22, in get_secret_from_file
with open(path, "w") as f:
PermissionError: [Errno 13] Permission denied: '/data/secret.txt'
https://github.com/etesync/server/wiki/Basic-Setup-Etebase-(EteSync-v2)#set-up-asgi-server
Looks like anything past Dec 29, 2020 needs this.
Including omnibus in the docker image name will help to tell users about the nature of this specific docker image, namely that it is an inclusion of both the web and server components, as well as the dav bridge if #2 is implemented
This would allow hosting outside(I.E. in a subfolder) the root of a server.
Navigating to http://10.0.0.1:8080/admin still leads to the webclient login page and not the admin portal as expected
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.