GithubHelp home page GithubHelp logo

vps's Introduction

VPS FLUKJOKREX

การใช้งานเครื่องเหมือน GITHUB

# 1. GITHUB สร้างที่เก็บข้อมูล ตั้งชื่อ .... สร้าง file = .github/workflows/main.yml

#######################################################

COPPY : name: ci = run: .\ngrok\ngrok.exe tcp 3389

{ coppy -----

name: CI

on: [push, workflow_dispatch]

jobs:

build:

runs-on: windows-latest

steps:

- name: Download

  run: Invoke-WebRequest https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-windows-amd64.zip -OutFile ngrok.zip

- name: Extract

  run: Expand-Archive ngrok.zip

- name: Auth

  run: .\ngrok\ngrok.exe authtoken $Env:NGROK_AUTH_TOKEN

  env:

    NGROK_AUTH_TOKEN: ${{ secrets.NGROK_AUTH_TOKEN }}

- name: Enable TS

  run: Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server'-name "fDenyTSConnections" -Value 0

- run: Enable-NetFirewallRule -DisplayGroup "Remote Desktop"

- run: Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "UserAuthentication" -Value 1

- run: Set-LocalUser -Name "runneradmin" -Password (ConvertTo-SecureString -AsPlainText "P@ssw0rd!" -Force)

- name: Create Tunnel

  run: .\ngrok\ngrok.exe tcp 3389 }
  ################################
  ----------------------------------------------------

  # การใช้โทเคน ลง Github 

1.ที่เก็บข้อมูล ของคุณ 2. ไปที่ ตั้งค่า secrets and variables -Actions secrets and variables 3. ใน Actions secrets and variable - Repository secrets 4. new Repository secrets ตั้งชื่อ NGROK_AUTH_TOKEN 5. new Repository secrets - Value ให้ใส่ token = ngrok.com

vps's People

Contributors

flukjokrax avatar

Watchers

 avatar

vps's Issues

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.