GithubHelp home page GithubHelp logo

enacit4r-cdn's Introduction

ENACIT4Research CDN

Hosted on https://enacit4r-cdn.epfl.ch/

How do I upload my dataset ?

  1. install s3cmd

    • on Windows
    • on Mac OS :
      brew install s3cmd
    • on Ubuntu :
      sudo apt install s3cmd
  2. configure s3cmd

    s3cmd --configure

    Answers :

    • Access Key : documented in enacit4r KeeWeb
    • Secret Key : idem
    • Region : keep default
    • S3 Endpoint : s3.epfl.ch
    • DNS-style bucket+hostname:port template for accessing a bucket : s3.epfl.ch/%(bucket)
    • Encryption password : keep empty
    • Path to GPG program : keep default
    • Use HTTPS protocol : Yes
    • HTTP Proxy server name : keep empty
    • Test access with supplied credentials? : Yes
    • Save settings? : Yes
  3. upload your project data to S3 storage

    export BUCKET_NAME="documented in enacit-linux-sysadmins KeeWeb"
    export VERSION_NAME=$(date +%F)
    
    s3cmd put --recursive --acl-public --guess-mime-type myProjectDataOrDist s3://${BUCKET_NAME}/myProject/${VERSION_NAME}/
  4. Use it

https://enacit4r-cdn.epfl.ch/myProject/2022-05-08/path/to/my/file

enacit4r-cdn's People

Contributors

guilbep avatar nicdub avatar sbancal avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

enacit4r-cdn's Issues

[BUG] Missing CORS headers on 403 error

Hello

when trying to access a missing file on CDN
https://enacit4r-cdn.epfl.ch/lasur-swiss-proximity/2022-11-29/h3/7/66/46.pbf

The response doesn't have the CORS headers a successfull request has (eg https://enacit4r-cdn.epfl.ch/lasur-swiss-proximity/2022-11-29/h3/7/67/45.pbf) :

  • access-control-allow-credentials: true
  • access-control-allow-headers: Authorization,Accept,Origin,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range
  • access-control-allow-methods: GET
  • access-control-allow-origin: *

This creates errors logs in my application
image

Would it be possible to add thoses headers to 403 answers ?
Thanks !

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.