Skip to content
This repository was archived by the owner on Aug 26, 2021. It is now read-only.
This repository was archived by the owner on Aug 26, 2021. It is now read-only.

Confused about initial setup and usage #8

@cheako

Description

@cheako

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";
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions