first commit

This commit is contained in:
lamacchinadesiderante 2023-01-26 20:47:24 +01:00
parent c018fd28fe
commit 1fa44477ec
5 changed files with 41 additions and 14 deletions

13
Dockerfile Normal file
View File

@ -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"]

View File

@ -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
```
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
docker-compose up -d
```
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`

11
docker-compose.yml Normal file
View File

@ -0,0 +1,11 @@
version: '3'
services:
porninvidious:
image: porninvidious:latest
restart: always
ports:
- "8069:3000"

View File

@ -1,7 +1,7 @@
local socket = require("socket")
local ip = '127.0.0.1'
local port = '8069'
local port = '3000'
if #arg > 0 then
local i = 1

3
start.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
lua server.lua -i 0.0.0.0 -p 3000