Code Monkey home page Code Monkey logo

asset-server's Introduction

Introduction

DataCore Asset Parser

Run exec.sh with a cronjob (every 10minutes should suffice), for example with flock */10 * * * * /usr/bin/flock -n /tmp/tool.lockfile /home/stt/tool/exec.sh

Nginx

Example configuration

# Redirect all HTTP traffic to HTTPS
server {
        listen 80;
        server_name assets.datacore.app;
        return 301 https://$host$request_uri;
}

server {
        listen 443 ssl http2;
        listen [::]:443 ssl http2;

        server_name assets.datacore.app;

        ssl_certificate      /home/stt/certs/cert.pem;
        ssl_certificate_key  /home/stt/certs/privkey.pem;

        add_header X-XSS-Protection "1; mode=block";
        add_header X-Content-Type-Options "nosniff";
        add_header Strict-Transport-Security "max-age=63072000";
        add_header Content-Security-Policy "object-src 'none'; frame-ancestors 'none'";

        location / {
                alias /home/stt/tool/out/assets/;
                access_log off;
                expires max;
        }

        location /data/ {
                alias /home/stt/tool/out/data/;
                expires -1;
        }
}

asset-server's People

Contributors

alexcpu avatar temporalagent7 avatar datacorebot avatar dependabot[bot] avatar ineffyble avatar nmoschkin avatar nonamenamer avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.