first commit
This commit is contained in:
parent
c018fd28fe
commit
1fa44477ec
|
@ -0,0 +1,13 @@
|
||||||
|
FROM woahbase/alpine-lua:latest
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN apk update \
|
||||||
|
&& apk add wget \
|
||||||
|
lua \
|
||||||
|
lua-socket
|
||||||
|
|
||||||
|
ADD start.sh /
|
||||||
|
RUN ["chmod", "+x", "/start.sh"]
|
||||||
|
|
||||||
|
ENTRYPOINT ["/start.sh"]
|
26
README.md
26
README.md
|
@ -1,19 +1,19 @@
|
||||||
# porninvidious
|
# PornInvidious
|
||||||
|
|
||||||
requires: `wget`, `lua`, `luasocket`, a posix shell
|
This is a fork from the original PornInvidious project:
|
||||||
|
|
||||||
|
`https://codeberg.org/SimpleWeb/PornInvidious`
|
||||||
|
|
||||||
|
I just added a Dockerfile ad a docker-compose to make install process easier.
|
||||||
|
|
||||||
|
# Requirements
|
||||||
|
|
||||||
|
docker and docker-compose
|
||||||
|
|
||||||
|
# How to run locally
|
||||||
|
|
||||||
# how to use
|
|
||||||
```
|
```
|
||||||
lua server.lua
|
docker-compose up -d
|
||||||
```
|
|
||||||
go to `http://127.0.0.1:8069` (https doesn't work)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
optionally pass ip and port as arguments
|
|
||||||
```
|
|
||||||
lua server.lua -i 0.0.0.0 -p 80
|
|
||||||
```
|
```
|
||||||
|
|
||||||
The code of the inital commit of this repository was made by [acz](https://acz.kalli.st)
|
go to `http://127.0.0.1:8069`
|
|
@ -0,0 +1,11 @@
|
||||||
|
version: '3'
|
||||||
|
|
||||||
|
services:
|
||||||
|
porninvidious:
|
||||||
|
|
||||||
|
image: porninvidious:latest
|
||||||
|
|
||||||
|
restart: always
|
||||||
|
|
||||||
|
ports:
|
||||||
|
- "8069:3000"
|
|
@ -1,7 +1,7 @@
|
||||||
local socket = require("socket")
|
local socket = require("socket")
|
||||||
|
|
||||||
local ip = '127.0.0.1'
|
local ip = '127.0.0.1'
|
||||||
local port = '8069'
|
local port = '3000'
|
||||||
|
|
||||||
if #arg > 0 then
|
if #arg > 0 then
|
||||||
local i = 1
|
local i = 1
|
||||||
|
|
Loading…
Reference in New Issue