Coder Social home page Coder Social logo

yawaflua / yaflay.ru Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.08 MB

This is site with blog and url redirect service

Home Page: https://yawaflua.ru/

License: Creative Commons Zero v1.0 Universal

HTML 43.46% C# 41.73% Dockerfile 0.83% CSS 10.98% JavaScript 3.00%
csharp-app razor razor-pages csharp

yaflay.ru's Introduction

Hello, there!

Publish Docker image

This is my custom site, with url: yawaflua.ru

Used frameworks: Asp.Net, Razor, jQuery

Thanks for the help to @Mih4n!

If you wanna help me, create Issue or Pull request.

Features

  • Authorization with discord OAuth2
  • Main page is downloaded from user`s github readme(like this)
  • Blog system with loading comments after render a page, for optimization
  • Admin panel for blog`s, can make article for blog and write to db new redirect setting(Discord OAuth2)
  • Set discord oauth2 and database settings from .env(docker-compose file, another docker-type function) or appsettings.json(only one from this)

How to start?

You should to use this command for download this package from ghcr:

For latest version

docker pull ghcr.io/yawaflua/yaflay.ru:master

For stable version

docker pull ghcr.io/yawaflua/yaflay.ru:latest

After that create docker-compose file, for example:

version: "3.9"

services: 
  site:
    image: ghcr.io/yawaflua/yaflay.ru:master
    environment:
        PSQL_HOST: example.com
        PSQL_USER: root
        PSQL_DATABASE: MySite
        PSQL_PASSWORD: root
        REDIRECTURL: https://example.com/authorize
        CLIENTSECRET: aAbBcCdD123123
        CLIENTID: 1111111111111111111
        // You can add many ids, used "," like this:
        // OWNERID: 111111111111111, 111111111111111, 1111111111111
        OWNERID: 1111111111111111
        
        READMEFILE: https://raw.githubusercontent.com/example/example/main/README.md

For normal work this site need to give psql data to docker environ, or appsettings.json, if you download this project from github manually Example data for appsettings.json:

{
  "DetailedErrors": true,
  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "Microsoft.AspNetCore": "Warning"
    }
  },
  "clientId": "111111111111",
  "clientSecret": "aAbBcCdD",
  "redirectUrl": "https://example.com/authorize",
  "connectionString": "Host=example.com;Username=root;Password=root;Database=MySite;",
  "__comment": {
        "__comment": "You can add many ids, used \",\" like this:",
        "ownerId": "111111111111111, 1111111111, 11111111111, 1111111111111",
        "__comment_2": "please, didnt use dictionary-typed json value"
  },
  "ownerId": "1111111111",
  "readmeFile": "https://raw.githubusercontent.com/example/example/main/README.md"
}

Support me

boosty - boosty

patreon - patreon

yaflay.ru's People

Contributors

yawaflua avatar

Stargazers

RailTH avatar

Watchers

 avatar

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.