• Stars
    star
    343
  • Rank 123,371 (Top 3 %)
  • Language
    JavaScript
  • Created over 9 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Webinterface for glad -> https://github.com/Dav1dde/glad

Glad-Web

This is a webservice for glad, a multi-language Vulkan/GL/GLES/EGL/GLX/WGL loader-generator based on the official specifications.

Official instance running at: http://glad.dav1d.de/

Requirements:

Flask==0.10.1
Flask-Silk==0.2
Jinja2==2.7.3
MarkupSafe==0.23
Werkzeug==0.10.4
argparse==1.2.1
eventlet==0.17.4
future==0.15.0
gevent==1.0.2
greenlet==0.4.7
gunicorn==19.3.0
itsdangerous==0.24
lxml==3.4.4
wsgiref==0.1.2

Furthermore Flask-Autoindex is also required. I am using the git version at commit: bd5daee43353e77cb89d967bffa1a3786e5182ad. The PyPi version does not work.

And obviously glad needs to be installed as well!

Cronjob:

To delete all temporary files, I recommend running a cronjob every 24 hours:

#!/bin/sh
    
cd /home/pyweb/gladweb/glad-web/
source ../bin/activate
    
exec python -m gladweb cron --age 23

Gunicorn:

Start script:

#!/bin/sh

cd /path/to/gladweb/glad-web/
# assume virtualenv location, might need to be changed
source ../bin/activate

exec gunicorn -c gunicorn.config.py 'gladweb:create_application(debug=False, verbose=None)' "$@"

Config:

import os.path

base_path = os.path.split(os.path.abspath(__file__))[0]

bind = '127.0.0.1:5000'
workers = 5
worker_class = 'eventlet'
keepalive = 5
user = 'glad'
errorlog = os.path.join(base_path, 'error.log')
loglevel = 'warning'
proc_name = 'glad gunicorn'

Supervisor:

[program:glad]
command = /path/to/gladweb/glad-web/start_gladweb.sh
directory = /path/to/gladweb/glad-web
user = glad
autostart = True
autorestart = True
stdout_logfile = /var/log/supervisor/glad.log
stderr_logfile = /var/log/supervisor/glad_err.log

Nginx:

server {
    listen 80;
    server_name localhost;

    root /path/to/glad-web/;

    location / {
        try_files $uri @proxy_to_app;
    }

    location /static {
        alias /path/to/glad-web/gladweb/static;
    }
    
    # 'frozen' html files 
    location /generated {
        default_type text/plain;
        alias /path/to/glad-web/temp;
    }
   
    # served by flask-silk 
    location /generated/icons {
        try_files $uri @proxy_to_app;
    }

    location @proxy_to_app {
        proxy_set_header Host $http_host;
        proxy_set_header X-Forwarded-For  $proxy_add_x_forwarded_for;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_redirect off;

        proxy_pass http://localhost:5000;
    }
}

More Repositories

1

glad

Multi-Language Vulkan/GL/GLES/EGL/GLX/WGL Loader-Generator based on the official specs.
C
3,190
star
2

gl3n

OpenGL Maths for D (not glm for D).
D
103
star
3

pasteofexile

Paste of Exile - Path of Building Pastebin
Rust
57
star
4

glamour

OpenGL wrapper for the D programming language.
D
44
star
5

BraLa

A minecraft SMP Client written in D (License: GPLv3) – BraLa, Minecraft on a lower (WTF?) level
D
30
star
6

dotfiles

KDE with I3, Vim, ZSH and a lot more
Shell
13
star
7

ssr-workers

Rust based Cloudflare Worker with SSR
Rust
8
star
8

lumen

THIS REPOSITORY IS DEAD - Lumen is part of Kate, it can be found on the kate git repository
C++
7
star
9

cef

D wrappers for CEF
D
6
star
10

dnotify

libnotify wrapper for the D programming language
D
5
star
11

farfalle

Farfalle - Simple, multi-purpose Pastebin
Rust
5
star
12

njail

utility scripts to manage network namespaces `ip netns`, e.g. creating a VPN-Jail
Shell
5
star
13

adventofcode

Incomplete list of some of my AoC solutions
Rust
5
star
14

elegant-departure

Rust crate to simplify graceful shutdowns
Rust
5
star
15

glwtf

A WIP glfw wrapper for the D programming language
D
4
star
16

SimTools

Python Library for reading the DBPF format used by EA/Maxis for Sim* Games
Python
4
star
17

poe-tmm

Path Of Exile Tree Minimap
Rust
4
star
18

ymp

Media Player for Playlists (Youtube, Grooveshark, Soundcloud) exporting the MPRIS2 interface
Python
4
star
19

spring-tenant-scope

Showcases a custom tenant scope supporting different configurations for every tenant
Java
4
star
20

tav

Twitch Artificial Viewers, Dead project and only existed as a PoC
Python
3
star
21

poe-rs

Tools and Libraries for Path of Exile written in Rust. But still mainly a playground nothing serious
Rust
3
star
22

surfi

Offscreen rendering of webpages with webkit.
C
3
star
23

nbd

A D library for reading and writing NBT files.
D
3
star
24

Micro16

A Micro16 Emulator as taught at TU Vienna (aka. PtokA)
JavaScript
3
star
25

vp

Minimalistic pastebin for Code and Images
Python
3
star
26

vs

Simple URL-Shortener
Python
2
star
27

surf

My personal fork of http://surf.suckless.org, playin' around with it, goal: offscreen rendering
C
2
star
28

xdpdump-rs

xdpdump in Rust
Rust
2
star
29

glad-guru

TypeScript
2
star
30

chartdl

Retrieves the german charts from mtv, downloads the corresponding videos from youtube and if wanted, extracts the audio with mplayer and lame (flv to mp3).
Python
2
star
31

Playground

Everything and Nothing
Rust
2
star
32

glad-docker

Docker Image for glad-web
Shell
2
star
33

wonne

Awesomium 1.6.5 C-Api abstraction for D
D
2
star
34

docker-archbuild

Shell
2
star
35

pobbin-assets

Path of Exile Asset Pipeline for pobb.in
Rust
2
star
36

PepegSitter

Collection of Tree Sitter Parsers bundled into a Rust Crate
Rust
2
star
37

rcd

RemoteControl in D
D
2
star
38

AntiBoxBoxBot

WE BANNED BOYS
Python
1
star
39

etmv

Enjoy the m...ing Video!
Python
1
star
40

dsbg

Simple yet kind of powerful static site/blog generator.
Python
1
star
41

awirc

gevent python3 irc library
Python
1
star
42

glad-test-docker

Dockerfile
1
star
43

surfi-deimos

D
1
star
44

minecheck

Python
1
star
45

loltimer

JavaScript
1
star
46

unmd

Userland NetworkManager Dispatcher
Rust
1
star
47

bitlbee-libpurple-docker

Docker container containing bitlbee-libpurple and a bunch of protocols
Shell
1
star
48

soonerize

Python
1
star
49

python-echoprint

C++
1
star
50

awesomium

D bindings for awesomium
C++
1
star
51

mcw

Minecraft Webpanel
Python
1
star
52

muo

Learning Erlang while doing stuff I need
Erlang
1
star
53

gljm

Old! D library to load various object formats, including .ply, .obj and a custom .json
D
1
star
54

fluss

Rust
1
star
55

twnotify

Twitch Notify - Get notified when your favorite streamer goes online.
Python
1
star
56

ase-equations

Erlang
1
star
57

emfas

A bunch of utilities for the Echoprint framework
Python
1
star