summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorAnton Luka Šijanec <sijanecantonluka@gmail.com>2020-11-09 15:06:18 +0100
committerGitHub <noreply@github.com>2020-11-09 15:06:18 +0100
commit05042924c5797d1bcf61794aad1a4965b7fb0e65 (patch)
tree32d9e014b24c76514be83467693a334872cdd6ab /server
parentMerge pull request #28 from beziapp/dev 🤞 (diff)
parentadded nginx config file for bežiapp html host (diff)
downloadbeziapp-05042924c5797d1bcf61794aad1a4965b7fb0e65.tar
beziapp-05042924c5797d1bcf61794aad1a4965b7fb0e65.tar.gz
beziapp-05042924c5797d1bcf61794aad1a4965b7fb0e65.tar.bz2
beziapp-05042924c5797d1bcf61794aad1a4965b7fb0e65.tar.lz
beziapp-05042924c5797d1bcf61794aad1a4965b7fb0e65.tar.xz
beziapp-05042924c5797d1bcf61794aad1a4965b7fb0e65.tar.zst
beziapp-05042924c5797d1bcf61794aad1a4965b7fb0e65.zip
Diffstat (limited to 'server')
-rw-r--r--server/beziapp.conf62
-rw-r--r--server/nadomescanja/output.pdfbin1404099 -> 0 bytes
-rwxr-xr-xserver/nadomescanja/script.sh21
3 files changed, 62 insertions, 21 deletions
diff --git a/server/beziapp.conf b/server/beziapp.conf
new file mode 100644
index 0000000..1aaa138
--- /dev/null
+++ b/server/beziapp.conf
@@ -0,0 +1,62 @@
+server {
+ listen 0.0.0.0:80;
+ listen [::]:80;
+ server_name .app.gimb.tk;
+ return 301 https://app.gimb.tk$request_uri;
+ port_in_redirect off;
+ server_name_in_redirect off;
+}
+server {
+ listen 0.0.0.0:443 http2 ssl;
+ listen [::]:443 http2 ssl;
+ server_name .app.gimb.tk;
+ ssl_certificate /etc/ssl/sslforfree/gimb.tk.crtca;
+ ssl_certificate_key /etc/ssl/sslforfree/gimb.tk.key;
+ root /home/gimb/beziapp.github.io;
+ location / {
+ if ($http_origin ~ \.?gimb\.tk$) {
+ set $cors 'true';
+ set $both_conditions "P";
+ add_header "x-debug-http-origin-check" "passed";
+ }
+ if ($cors = 'true') {
+ add_header "Access-Control-Allow-Origin" $http_origin always;
+ add_header "Access-Control-Allow-Credentials" "true" always;
+ add_header "Access-Control-Allow-Methods" "GET, POST, PATCH, PUT, DELETE, OPTIONS" always;
+ add_header 'Access-Control-Allow-Headers' 'Accept,Authorization,Cache-Control,Content-Type,DNT,If-Modified-Since,Keep-Alive,Origin,User-Agent,X-Requested-With,Authorization' always;
+ add_header 'Access-Control-Expose-Headers' 'Accept,Authorization,Cache-Control,Content-Type,DNT,If-Modified-Since,Keep-Alive,Origin,User-Agent,X-Requested-With,Authorization' always;
+ }
+ if ($request_method = 'OPTIONS') {
+ set $both_conditions "${both_conditions}D";
+ }
+ if ($both_conditions = PD) {
+ add_header "Access-Control-Allow-Origin" $http_origin always;
+ add_header "Access-Control-Allow-Credentials" "true" always;
+ add_header "Access-Control-Allow-Methods" "GET, POST, PATCH, PUT, DELETE, OPTIONS" always;
+ add_header 'Access-Control-Allow-Headers' 'Accept,Authorization,Cache-Control,Content-Type,DNT,If-Modified-Since,Keep-Alive,Origin,User-Agent,X-Requested-With,Authorization' always;
+ add_header 'Access-Control-Expose-Headers' 'Accept,Authorization,Cache-Control,Content-Type,DNT,If-Modified-Since,Keep-Alive,Origin,User-Agent,X-Requested-With,Authorization' always;
+ add_header 'Access-Control-Max-Age' -1;
+ add_header 'Content-Type' 'text/plain charset=UTF-8';
+ add_header 'Content-Length' 0;
+ return 204;
+ }
+ try_files $uri $uri/ =404;
+ }
+
+# pass PHP scripts to FastCGI server
+#
+ location ~ \.php$ {
+ include snippets/fastcgi-php.conf;
+#
+# # With php-fpm (or other unix sockets):
+ fastcgi_pass unix:/run/php/php7.3-fpm.sock;
+# # With php-cgi (or other tcp sockets):
+# fastcgi_pass 127.0.0.1:9000;
+ }
+ location /clear-site-data {
+ add_header 'clear-site-data' '"*"';
+ add_header 'content-type' 'text/plain';
+ return 200 "data clear requested, you can go back now.";
+ }
+}
+
diff --git a/server/nadomescanja/output.pdf b/server/nadomescanja/output.pdf
deleted file mode 100644
index ada8a98..0000000
--- a/server/nadomescanja/output.pdf
+++ /dev/null
Binary files differ
diff --git a/server/nadomescanja/script.sh b/server/nadomescanja/script.sh
deleted file mode 100755
index 496b869..0000000
--- a/server/nadomescanja/script.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/bash
-# this is a script to test if we can get files from sharepoint in an easy way. #fuckrosoft
-
-curl 'https://gimnazijabezigrad.sharepoint.com/Gim/DatSpl/Gimb%20%C5%A0olska%20pravila%20ocenjevanja%202019_20.pdf' \
- -H 'authority: gimnazijabezigrad.sharepoint.com' \
- -H 'cache-control: max-age=0' \
- -H 'upgrade-insecure-requests: 1' \
- -H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) snap Chromium/83.0.4103.61 Chrome/83.0.4103.61 Safari/537.36' \
- -H 'accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9' \
- -H 'sec-fetch-site: none' \
- -H 'sec-fetch-mode: navigate' \
- -H 'sec-fetch-user: ?1' \
- -H 'sec-fetch-dest: document' \
- -H 'accept-language: en-US,en;q=0.9' \
- -H 'cookie: nSGt-0F5C552C67D73B521FBC79E429B19BDACAD60901BA94F0F7=gYEwMThFQjM0NTU1MjE0RkQyOTMyRUY3MEFBM0EyNTc1RTMwMjk4QTlEQjk0RjJBRDY5MDBGNUM1NTJDNjdENzNCNTIxRkJDNzlFNDI5QjE5QkRBQ0FENjA5MDFCQTk0RjBGNxIxMzIzNTc1NzEwNDE4MDQ3NTIgZ2ltbmF6aWphYmV6aWdyYWQuc2hhcmVwb2ludC5jb20l6emYjLtdSZH+qYiO8V6/lU1eeE4X4HEulbeqPNPqfZ84humJDzVIOi5BgnAVXq2FhXmQUJFVpRO83UVCPWy8jR3s5QweUhfiB6SJP6vVltUwKzbjyPGQf7h1ykLNXvOBJL+icoKtulLKHZ1nwZuYcByYH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\
- -H 'if-none-match: "{B7F3D3FC-A5A1-4919-9076-2C7804E4A31F},2"' \
- -H 'if-modified-since: Wed, 11 Dec 2019 10:12:19 GMT' \
- -o output.pdf \
- --compressed
-
-# they're fixking with me, right? why would anyone need 1 kilobyte of data in a cookie,,, A SESSION COOKIE!=?!=?