Compare commits

..

30 Commits

Author SHA1 Message Date
github-actions[bot]
75c2aae3fa Update .app-headers file 2025-01-16 15:06:37 +00:00
Kristian Skov
258b1bd9fd
New script: Dotnet ASP.NET Web Server (#1501)
* Added files

* Update dotnetaspwebapi.json

* Updated build.func reference back to the original repos one

* Update dotnetaspwebapi.json for ubuntu 24.04

* Update dotnetaspwebapi.sh for ubuntu 24.04

* Update dotnetaspwebapi-install.sh for ubuntu 24.04

* Update install/dotnetaspwebapi-install.sh

Co-authored-by: Michel Roegl-Brunner <73236783+michelroegl-brunner@users.noreply.github.com>

* Updated for review

* Fixed FTP authentication

* Update dotnetaspwebapi-install.sh

Changed the service name to a static one

---------

Co-authored-by: Michel Roegl-Brunner <73236783+michelroegl-brunner@users.noreply.github.com>
2025-01-16 16:06:22 +01:00
CanbiZ
6d4eb9c3ee
Update update_json_date.yml 2025-01-16 16:04:54 +01:00
CanbiZ
15faa76b69
Update update_json_date.yml 2025-01-16 16:02:07 +01:00
CanbiZ
393f6d74c9
Update update_json_date.yml 2025-01-16 15:58:37 +01:00
CanbiZ
f51762420a
Update page.tsx 2025-01-16 15:13:39 +01:00
CanbiZ
f8c10ca80b
Update page.tsx 2025-01-16 15:09:13 +01:00
CanbiZ
3fca76dbbc
Mainpage: Fix "Scripts by TTeck": Typo & Mobile View 2025-01-16 15:05:48 +01:00
CanbiZ
b57689ec50
Mainpage: Fix "Scripts by TTeck": Typo & Mobile View (#1533) 2025-01-16 15:01:22 +01:00
CanbiZ
1f8f593116
add reactmode 2025-01-16 14:51:23 +01:00
CanbiZ
330315c615
remove comment jsx 2025-01-16 14:48:38 +01:00
CanbiZ
504d47d246
add react jsx 2025-01-16 14:48:17 +01:00
CanbiZ
ab206530e0
fix navbar issue in mobile view
Some checks are pending
Auto Update .app-headers / update-app-headers (push) Waiting to run
Shellcheck / Shellcheck (push) Waiting to run
Create Changelog Pull Request / update-changelog-pull-request (push) Waiting to run
Frontend CI/CD / build (push) Waiting to run
Frontend CI/CD / deploy (push) Blocked by required conditions
2025-01-16 14:45:54 +01:00
CanbiZ
f5b78d5dcc
fix navbar issue in mobile view 2025-01-16 14:43:53 +01:00
CanbiZ
3f9863ebf9
Add Mobile check for empty icon-url on website (#1532) 2025-01-16 14:36:46 +01:00
CanbiZ
786e8963b9
Update update_json_date.yml 2025-01-16 14:16:09 +01:00
CanbiZ
6cc4244f70
Update update_json_date.yml 2025-01-16 13:58:11 +01:00
CanbiZ
f5a260a399
Update update_json_date.yml 2025-01-16 13:55:54 +01:00
CanbiZ
f1f8f78420
Update update_json_date.yml 2025-01-16 13:55:22 +01:00
CanbiZ
6c42b5c21a
Update update_json_date.yml 2025-01-16 13:53:28 +01:00
CanbiZ
24d24421d1
Update update_json_date.yml 2025-01-16 13:52:03 +01:00
CanbiZ
9e4c627323
Update update_json_date.yml 2025-01-16 13:49:56 +01:00
Michel Roegl-Brunner
2551bf6f9f
[Workflow]Update autolabeler-config.json (#1525) 2025-01-16 13:44:24 +01:00
Michel Roegl-Brunner
8533380813
[core]Update update_json_date.yml (#1526)
* [core]Update update_json_date.yml

* Update update_json_date.yml
2025-01-16 13:44:04 +01:00
community-scripts-pr-app[bot]
f65abd9ac8
Update CHANGELOG.md (#1524)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-01-16 13:34:47 +01:00
Michel Roegl-Brunner
85387563f0
[core] Recreate Update JSON Workflow (#1523) 2025-01-16 12:12:13 +01:00
community-scripts-pr-app[bot]
5977f8f936
Update CHANGELOG.md (#1517)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-01-16 09:42:03 +01:00
CanbiZ
a15a59e615
add libapache2-mod-php 2025-01-16 09:18:02 +01:00
CanbiZ
14dfaa9bde
fix php-pear & php8.2 deps 2025-01-16 09:13:07 +01:00
github-actions[bot]
75778976d0
Update .app-headers file (#1518)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-01-16 09:05:49 +01:00
10 changed files with 285 additions and 73 deletions

View File

@ -50,7 +50,7 @@
"maintenance": [ "maintenance": [
{ {
"fileStatus": null, "fileStatus": null,
"includeGlobs": ["*.md", ".github/**"], "includeGlobs": ["*.md", ".github/**", "misc/*.func", "ct/create_lxc.sh"],
"excludeGlobs": [] "excludeGlobs": []
} }
], ],
@ -61,4 +61,4 @@
"excludeGlobs": [] "excludeGlobs": []
} }
] ]
} }

View File

@ -1,68 +1,48 @@
name: Update JSON Date in PR name: Update JSON Date
on: on:
pull_request: pull_request:
branches: types: [opened, synchronize, reopened]
- main
types:
- opened
- synchronize
- reopened
jobs: jobs:
update_json: list-files:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Check out repository - name: Checkout PR Branch
uses: actions/checkout@v4 uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: Configure Git user - name: Fetch PR changes
run: | run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com" git remote add fork https://github.com/${{ github.event.pull_request.head.repo.full_name }}.git
git config --global user.name "github-actions[bot]" git fetch fork ${{ github.event.pull_request.head.ref }}:pullreq
git checkout pullreq
- name: Get list of changed files in PR - name: Update JSON
id: files id: changed-files
uses: actions/github-script@v7 run: |
with: FILES=$(gh api repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files --jq '.[].filename' | tr '\n' ' ')
script: | echo "changed_files=${FILES}"
const prNumber = context.payload.pull_request.number; for FILE in $FILES; do
const prFiles = await github.rest.pulls.listFiles({ if [[ "$FILE" =~ /(.*)\.json ]]; then
owner: context.repo.owner, NAME="${BASH_REMATCH[1]}"
repo: context.repo.repo, else
pull_number: prNumber, echo "no new JSON in ${FILES}"
}); continue
fi
// Filter for JSON files only
const changedJsonFiles = prFiles.data JSON_FILE="json/${NAME}.json"
.filter(file => file.filename.endsWith('.json')) if [[ -f "$JSON_FILE" ]]; then
.map(file => file.filename); echo "Updating date_created in $JSON_FILE"
jq --arg date "$(date +%Y-%m-%d)" '.date_created = $date' "$JSON_FILE" > tmp.json && mv tmp.json "$JSON_FILE"
core.setOutput('changed_files', changedJsonFiles.join('\n')); else
console.log('Changed JSON files:', changedJsonFiles); echo "JSON file $FILES not found"
fi
- name: Update dates in changed JSON files
run: |
changed_files="${{ steps.files.outputs.changed_files }}"
if [[ -z "$changed_files" ]]; then
echo "No JSON files changed in this PR. Exiting."
exit 0
fi
for file in $changed_files; do
echo "Updating $file with current date."
# Your logic to update the file
jq '.date_created = "'"$(date +%Y-%m-%d)"'"' "$file" > tmp.$$.json && mv tmp.$$.json "$file"
done done
- name: Commit changes if updated git config --global user.name "github-actions[bot]"
run: | git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add *.json git diff --exit-code || git commit -am "Updating Dates in affected JSON files."
git diff --cached --quiet || git commit -m "Update JSON dates" git push
env:
- name: Push changes GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git push

View File

@ -16,6 +16,18 @@ All LXC instances created using this repository come pre-installed with Midnight
> [!IMPORTANT] > [!IMPORTANT]
Do not break established syntax in this file, as it is automatically updated by a Github Workflow Do not break established syntax in this file, as it is automatically updated by a Github Workflow
## 2025-01-16
### Changed
### ✨ New Scripts
- New script: phpIPAM [@bvdberg01](https://github.com/bvdberg01) ([#1503](https://github.com/community-scripts/ProxmoxVE/pull/1503))
### 🧰 Maintenance
- [core] Recreate Update JSON Workflow [@michelroegl-brunner](https://github.com/michelroegl-brunner) ([#1523](https://github.com/community-scripts/ProxmoxVE/pull/1523))
## 2025-01-15 ## 2025-01-15
### Changed ### Changed

49
ct/dotnetaspwebapi.sh Normal file
View File

@ -0,0 +1,49 @@
#!/usr/bin/env bash
source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
# Copyright (c) 2021-2025 community-scripts ORG
# Author: Kristian Skov
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/linux-nginx?view=aspnetcore-9.0&tabs=linux-ubuntu
# App Default Values
APP="Dotnet ASP Web API"
var_tags="web"
var_cpu="1"
var_ram="1024"
var_disk="8"
var_os="ubuntu"
var_version="24.04"
var_unprivileged="0"
# App Output & Base Settings
header_info "$APP"
base_settings
# Core
variables
color
catch_errors
function update_script() {
header_info
check_container_storage
check_container_resources
if [[ ! -d /var/www ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
msg_info "Updating ${APP} LXC"
apt-get update &>/dev/null
apt-get -y upgrade &>/dev/null
msg_ok "Updated Successfully"
exit
}
start
build_container
description
msg_ok "Completed Successfully!\n"
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
echo -e "${INFO}${YW} Access it using the following IP:${CL}"
echo -e "${TAB}${GATEWAY}${BGN}${IP}:80${CL}"

View File

@ -1,9 +1,12 @@
import { OperatingSystem } from "@/lib/types"; import { OperatingSystem } from "@/lib/types";
import { MessagesSquare, Scroll } from "lucide-react"; import { MessagesSquare, Scroll } from "lucide-react";
import { FaDiscord, FaGithub } from "react-icons/fa"; import { FaDiscord, FaGithub } from "react-icons/fa";
import React from "react";
export const basePath = process.env.BASE_PATH; export const basePath = process.env.BASE_PATH;
const isMobile = typeof window !== "undefined" && window.innerWidth < 640;
export const navbarLinks = [ export const navbarLinks = [
{ {
href: `https://github.com/community-scripts/${basePath}`, href: `https://github.com/community-scripts/${basePath}`,
@ -23,13 +26,15 @@ export const navbarLinks = [
icon: <Scroll className="h-4 w-4" />, icon: <Scroll className="h-4 w-4" />,
text: "Change Log", text: "Change Log",
}, },
{ !isMobile
href: `https://github.com/community-scripts/${basePath}/discussions`, ? {
event: "Discussions", href: `https://github.com/community-scripts/${basePath}/discussions`,
icon: <MessagesSquare className="h-4 w-4 hidden sm:block" />, event: "Discussions",
text: "Discussions", icon: <MessagesSquare className="h-4 w-4" />,
}, text: "Discussions",
]; }
: null,
].filter(Boolean) as { href: string; event: string; icon: React.ReactNode; text: string }[];
export const mostPopularScripts = [ export const mostPopularScripts = [
"Proxmox VE Post Install", "Proxmox VE Post Install",

View File

@ -10,7 +10,7 @@
"moduleResolution": "bundler", "moduleResolution": "bundler",
"resolveJsonModule": true, "resolveJsonModule": true,
"isolatedModules": true, "isolatedModules": true,
"jsx": "preserve", "jsx": "react-jsx",
"incremental": true, "incremental": true,
"plugins": [ "plugins": [
{ {
@ -27,7 +27,7 @@
"**/*.ts", "**/*.ts",
"**/*.tsx", "**/*.tsx",
".next/types/**/*.ts", ".next/types/**/*.ts",
"next.config.mjs", "next.config.mjs"
], ],
"exclude": ["node_modules"] "exclude": ["node_modules"]
} }

View File

@ -0,0 +1,110 @@
#!/usr/bin/env bash
# Copyright (c) 2021-2025 community-scripts ORG
# Author: Kristian Skov
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
source /dev/stdin <<< "$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
msg_info "Installing Dependencies"
$STD apt-get update
$STD apt-get install -y \
ssh \
software-properties-common
$STD add-apt-repository -y ppa:dotnet/backports
$STD apt-get install -y \
dotnet-sdk-9.0 \
vsftpd \
nginx
msg_ok "Installed Dependencies"
msg_info "Configure Application"
var_project_name="default"
read -r -p "Type the assembly name of the project: " var_project_name
echo "Target assembly: '${var_project_name}'"
msg_ok "Application Configured"
msg_info "Setting up FTP Server"
useradd ftpuser
FTP_PASS=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c13)
usermod --password $(echo ${FTP_PASS} | openssl passwd -1 -stdin) ftpuser
mkdir -p /var/www/html
usermod -d /var/www/html ftp
usermod -d /var/www/html ftpuser
chown ftpuser /var/www/html
sed -i "s|#write_enable=YES|write_enable=YES|g" /etc/vsftpd.conf
sed -i "s|#chroot_local_user=YES|chroot_local_user=NO|g" /etc/vsftpd.conf
systemctl restart -q vsftpd.service
{
echo "FTP-Credentials"
echo "Username: ftpuser"
echo "Password: $FTP_PASS"
} >> ~/ftp.creds
msg_ok "FTP server setup completed"
msg_info "Setting up Nginx Server"
rm -f /var/www/html/index.nginx-debian.html
sed "s/\$var_project_name/$var_project_name/g" >myfile <<'EOF' >/etc/nginx/sites-available/default
map $http_connection $connection_upgrade {
"~*Upgrade" $http_connection;
default keep-alive;
}
server {
listen 80;
server_name $var_project_name.com *.$var_project_name.com;
location / {
proxy_pass http://127.0.0.1:5000/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
EOF
systemctl reload nginx
msg_ok "Nginx Server Created"
msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/kestrel-aspnetapi.service
[Unit]
Description=.NET Web API App running on Linux
[Service]
WorkingDirectory=/var/www/html
ExecStart=/usr/bin/dotnet /var/www/html/$var_project_name.dll
Restart=always
# Restart service after 10 seconds if the dotnet service crashes:
RestartSec=10
KillSignal=SIGINT
SyslogIdentifier=dotnet-${var_project_name}
User=root
Environment=ASPNETCORE_ENVIRONMENT=Production
Environment=DOTNET_NOLOGO=true
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now kestrel-aspnetapi.service
msg_ok "Created Service"
motd_ssh
customize
msg_info "Cleaning up"
$STD apt-get -y autoremove
$STD apt-get -y autoclean
msg_ok "Cleaned"

View File

@ -19,7 +19,9 @@ $STD apt-get install -y \
mc \ mc \
mariadb-server \ mariadb-server \
apache2 \ apache2 \
php8.2-{pdo,mysql,sockets,gmp,ldap,simplexml,json,cli,mbstring,pear,gd,curl} libapache2-mod-php \
php8.2 php8.2-{fpm,curl,cli,mysql,gd,intl,imap,apcu,pspell,tidy,xmlrpc,mbstring,gmp,xml,ldap,common,snmp} \
php-pear
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Setting up MariaDB" msg_info "Setting up MariaDB"
@ -81,4 +83,4 @@ msg_info "Cleaning up"
rm -rf "/opt/phpipam-v${RELEASE}.zip" rm -rf "/opt/phpipam-v${RELEASE}.zip"
$STD apt-get -y autoremove $STD apt-get -y autoremove
$STD apt-get -y autoclean $STD apt-get -y autoclean
msg_ok "Cleaned" msg_ok "Cleaned"

39
json/dotnetaspwebapi.json Normal file
View File

@ -0,0 +1,39 @@
{
"name":"Dotnet ASP Web API",
"slug":"dotnetaspwebapi",
"categories":[
0
],
"date_created":"2025-01-15",
"type":"ct",
"updateable":true,
"privileged":true,
"interface_port":80,
"documentation":"https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/linux-nginx?view=aspnetcore-9.0&tabs=linux-ubuntu",
"website":"https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/linux-nginx?view=aspnetcore-9.0&tabs=linux-ubuntu",
"logo":"https://upload.wikimedia.org/wikipedia/commons/thumb/7/7d/Microsoft_.NET_logo.svg/456px-Microsoft_.NET_logo.svg.png",
"description":"Automatically setup a ASP.NET server up, as well as a FTP server so you can publish to this container from Visual Studio.",
"install_methods":[
{
"type":"default",
"script":"ct/dotnetaspwebapi.sh",
"resources":{
"cpu":1,
"ram":1024,
"hdd":8,
"os":"Ubuntu",
"version":"24.04"
}
}
],
"default_credentials":{
"username":null,
"password":null
},
"notes":[
{
"text":"FTP server credentials: `cat ~/ftp.creds`",
"type":"info"
}
]
}

View File

@ -421,6 +421,21 @@ APP=Dockge
/_____/\____/\___/_/|_|\__, /\___/ /_____/\____/\___/_/|_|\__, /\___/
/____/ /____/
### dotnetaspwebapi.sh
APP=Dotnet ASP Web API
____ __ __ ___ _____ ____ _ __ __
/ __ \____ / /_____ ___ / /_ / | / ___// __ \ | | / /__ / /_
/ / / / __ \/ __/ __ \/ _ \/ __/ / /| | \__ \/ /_/ / | | /| / / _ \/ __ \
/ /_/ / /_/ / /_/ / / / __/ /_ / ___ |___/ / ____/ | |/ |/ / __/ /_/ /
/_____/\____/\__/_/ /_/\___/\__/ /_/ |_/____/_/ |__/|__/\___/_.___/
___ ____ ____
/ | / __ \/ _/
/ /| | / /_/ // /
/ ___ |/ ____// /
/_/ |_/_/ /___/
### emby.sh ### emby.sh
APP=Emby APP=Emby
______ __ ______ __