Skip to content

Commit

Permalink
stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Tricked-dev committed Apr 16, 2022
1 parent ec15039 commit 98cab8e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:

- name: Build archive
shell: bash
run: cp "target/release/desktop" "dist/"
run: cp "target/release/ascella-desktop" "dist/"

- uses: actions/[email protected]
with:
Expand Down
20 changes: 5 additions & 15 deletions ascella/nginx/ascella.wtf.nginx
Original file line number Diff line number Diff line change
@@ -1,26 +1,17 @@
# https://gist.github.com/plentz/6737338

server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name api.tricked.pro, ascella.wtf;
include snippets/self-signed.conf;
include snippets/ssl-params.conf;


add_header Strict-Transport-Security "max-age=31536000; includeSubdomains; preload";

location /v2 {
if ($request_method ~* "(GET|POST)") {
add_header "Access-Control-Allow-Origin" *;
}

if ($request_method = OPTIONS ) {
add_header "Access-Control-Allow-Origin" *;
add_header "Access-Control-Allow-Methods" "GET, POST, OPTIONS, HEAD";
add_header "Access-Control-Allow-Headers" "Authorization, x-user-id, x-user-token, x-user-key, Origin, X-Requested-With, Content-Type, Accept";
add_header 'Content-Type' 'text/plain; charset=utf-8';
add_header 'Content-Length' 0;

return 200;
}

location /v2 {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
Expand All @@ -29,5 +20,4 @@ server {
proxy_pass http://127.0.0.1:7878;
proxy_redirect off;
}

}

0 comments on commit 98cab8e

Please sign in to comment.