openvpn-httpbasic-server:
image: mdns/rancher-openvpn:1.2
privileged: true
volumes:
- /var/lib/openvpn/data:/etc/openvpn
volumes_from:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { | |
HUGGINGFACE_API_KEY, | |
} = process.env; | |
async function fetchHuggingFaceModel(model, data) { | |
const response = await fetch( | |
`https://api-inference.huggingface.co/models/${model}`, | |
{ | |
headers: { Authorization: `Bearer ${HUGGINGFACE_API_KEY}` }, | |
method: 'POST', |
server {
location / {
client_max_body_size 100k;
client_body_buffer_size 100k;
access_by_lua_block {
-- check the client IP address is in our black list
if ngx.var.remote_addr == "132.5.72.3" then
ngx.exit(ngx.HTTP_FORBIDDEN)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../paper-tabs/paper-tabs.html"> | |
<link rel="import" href="../paper-tabs/paper-tab.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; |