main: begin major rewrite for lasthour
This commit is contained in:
parent
24cac5feba
commit
6a97eaad12
@ -12,7 +12,7 @@ tasks:
|
|||||||
./vendor/bin/spin exec -u webuser coolify php artisan key:generate
|
./vendor/bin/spin exec -u webuser coolify php artisan key:generate
|
||||||
./vendor/bin/spin exec -u webuser coolify php artisan storage:link
|
./vendor/bin/spin exec -u webuser coolify php artisan storage:link
|
||||||
./vendor/bin/spin exec -u webuser coolify php artisan migrate:fresh --seed
|
./vendor/bin/spin exec -u webuser coolify php artisan migrate:fresh --seed
|
||||||
cat .coolify-logo
|
cat .jesus-is-king
|
||||||
gp sync-done spin-is-ready
|
gp sync-done spin-is-ready
|
||||||
|
|
||||||
- name: Install Node dependencies and run Vite
|
- name: Install Node dependencies and run Vite
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
<<<EOF
|
<<<EOF
|
||||||
Hello,
|
Hello,
|
||||||
|
|
||||||
Welcome to Coolify Cloud.
|
Welcome to Last Hour Cloud.
|
||||||
Here is your user id: $user->id
|
Here is your user id: $user->id
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
@ -1,94 +0,0 @@
|
|||||||
# Citizen Code of Conduct
|
|
||||||
|
|
||||||
## 1. Purpose
|
|
||||||
|
|
||||||
A primary goal of Coolify is to be inclusive to the largest number of contributors, with the most varied and diverse backgrounds possible. As such, we are committed to providing a friendly, safe and welcoming environment for all, regardless of gender, sexual orientation, ability, ethnicity, socioeconomic status, and religion (or lack thereof).
|
|
||||||
|
|
||||||
This code of conduct outlines our expectations for all those who participate in our community, as well as the consequences for unacceptable behavior.
|
|
||||||
|
|
||||||
We invite all those who participate in Coolify to help us create safe and positive experiences for everyone.
|
|
||||||
|
|
||||||
## 2. Open [Source/Culture/Tech] Citizenship
|
|
||||||
|
|
||||||
A supplemental goal of this Code of Conduct is to increase open [source/culture/tech] citizenship by encouraging participants to recognize and strengthen the relationships between our actions and their effects on our community.
|
|
||||||
|
|
||||||
Communities mirror the societies in which they exist and positive action is essential to counteract the many forms of inequality and abuses of power that exist in society.
|
|
||||||
|
|
||||||
If you see someone who is making an extra effort to ensure our community is welcoming, friendly, and encourages all participants to contribute to the fullest extent, we want to know.
|
|
||||||
|
|
||||||
## 3. Expected Behavior
|
|
||||||
|
|
||||||
The following behaviors are expected and requested of all community members:
|
|
||||||
|
|
||||||
* Participate in an authentic and active way. In doing so, you contribute to the health and longevity of this community.
|
|
||||||
* Exercise consideration and respect in your speech and actions.
|
|
||||||
* Attempt collaboration before conflict.
|
|
||||||
* Refrain from demeaning, discriminatory, or harassing behavior and speech.
|
|
||||||
* Be mindful of your surroundings and of your fellow participants. Alert community leaders if you notice a dangerous situation, someone in distress, or violations of this Code of Conduct, even if they seem inconsequential.
|
|
||||||
* Remember that community event venues may be shared with members of the public; please be respectful to all patrons of these locations.
|
|
||||||
|
|
||||||
## 4. Unacceptable Behavior
|
|
||||||
|
|
||||||
The following behaviors are considered harassment and are unacceptable within our community:
|
|
||||||
|
|
||||||
* Violence, threats of violence or violent language directed against another person.
|
|
||||||
* Sexist, racist, homophobic, transphobic, ableist or otherwise discriminatory jokes and language.
|
|
||||||
* Posting or displaying sexually explicit or violent material.
|
|
||||||
* Posting or threatening to post other people's personally identifying information ("doxing").
|
|
||||||
* Personal insults, particularly those related to gender, sexual orientation, race, religion, or disability.
|
|
||||||
* Inappropriate photography or recording.
|
|
||||||
* Inappropriate physical contact. You should have someone's consent before touching them.
|
|
||||||
* Unwelcome sexual attention. This includes, sexualized comments or jokes; inappropriate touching, groping, and unwelcomed sexual advances.
|
|
||||||
* Deliberate intimidation, stalking or following (online or in person).
|
|
||||||
* Advocating for, or encouraging, any of the above behavior.
|
|
||||||
* Sustained disruption of community events, including talks and presentations.
|
|
||||||
|
|
||||||
## 5. Weapons Policy
|
|
||||||
|
|
||||||
No weapons will be allowed at Coolify events, community spaces, or in other spaces covered by the scope of this Code of Conduct. Weapons include but are not limited to guns, explosives (including fireworks), and large knives such as those used for hunting or display, as well as any other item used for the purpose of causing injury or harm to others. Anyone seen in possession of one of these items will be asked to leave immediately, and will only be allowed to return without the weapon. Community members are further expected to comply with all state and local laws on this matter.
|
|
||||||
|
|
||||||
## 6. Consequences of Unacceptable Behavior
|
|
||||||
|
|
||||||
Unacceptable behavior from any community member, including sponsors and those with decision-making authority, will not be tolerated.
|
|
||||||
|
|
||||||
Anyone asked to stop unacceptable behavior is expected to comply immediately.
|
|
||||||
|
|
||||||
If a community member engages in unacceptable behavior, the community organizers may take any action they deem appropriate, up to and including a temporary ban or permanent expulsion from the community without warning (and without refund in the case of a paid event).
|
|
||||||
|
|
||||||
## 7. Reporting Guidelines
|
|
||||||
|
|
||||||
If you are subject to or witness unacceptable behavior, or have any other concerns, please notify a community organizer as soon as possible. hi@coollabs.io.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Additionally, community organizers are available to help community members engage with local law enforcement or to otherwise help those experiencing unacceptable behavior feel safe. In the context of in-person events, organizers will also provide escorts as desired by the person experiencing distress.
|
|
||||||
|
|
||||||
## 8. Addressing Grievances
|
|
||||||
|
|
||||||
If you feel you have been falsely or unfairly accused of violating this Code of Conduct, you should notify coollabsio with a concise description of your grievance. Your grievance will be handled in accordance with our existing governing policies.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## 9. Scope
|
|
||||||
|
|
||||||
We expect all community participants (contributors, paid or otherwise; sponsors; and other guests) to abide by this Code of Conduct in all community venues--online and in-person--as well as in all one-on-one communications pertaining to community business.
|
|
||||||
|
|
||||||
This code of conduct and its related procedures also applies to unacceptable behavior occurring outside the scope of community activities when such behavior has the potential to adversely affect the safety and well-being of community members.
|
|
||||||
|
|
||||||
## 10. Contact info
|
|
||||||
|
|
||||||
hi@coollabs.io
|
|
||||||
|
|
||||||
## 11. License and attribution
|
|
||||||
|
|
||||||
The Citizen Code of Conduct is distributed by [Stumptown Syndicate](http://stumptownsyndicate.org) under a [Creative Commons Attribution-ShareAlike license](http://creativecommons.org/licenses/by-sa/3.0/).
|
|
||||||
|
|
||||||
Portions of text derived from the [Django Code of Conduct](https://www.djangoproject.com/conduct/) and the [Geek Feminism Anti-Harassment Policy](http://geekfeminism.wikia.com/wiki/Conference_anti-harassment/Policy).
|
|
||||||
|
|
||||||
_Revision 2.3. Posted 6 March 2017._
|
|
||||||
|
|
||||||
_Revision 2.2. Posted 4 February 2016._
|
|
||||||
|
|
||||||
_Revision 2.1. Posted 23 June 2014._
|
|
||||||
|
|
||||||
_Revision 2.0, adopted by the [Stumptown Syndicate](http://stumptownsyndicate.org) board on 10 January 2013. Posted 17 March 2013._
|
|
@ -1,34 +0,0 @@
|
|||||||
# Contributing
|
|
||||||
|
|
||||||
> "First, thanks for considering to contribute to my project.
|
|
||||||
It really means a lot!" - [@andrasbacsai](https://github.com/andrasbacsai)
|
|
||||||
|
|
||||||
You can ask for guidance anytime on our
|
|
||||||
[Discord server](https://coollabs.io/discord) in the `#contribution` channel.
|
|
||||||
|
|
||||||
## Code Contribution
|
|
||||||
|
|
||||||
### 1) Setup your development environment
|
|
||||||
|
|
||||||
- You need to have Docker Engine (or equivalent) [installed](https://docs.docker.com/engine/install/) on your system.
|
|
||||||
- For better DX, install [Spin](https://serversideup.net/open-source/spin/).
|
|
||||||
|
|
||||||
### 2) Set your environment variables
|
|
||||||
|
|
||||||
- Copy [.env.development.example](./.env.development.example) to .env.
|
|
||||||
|
|
||||||
## 3) Start & setup Coolify
|
|
||||||
|
|
||||||
- Run `spin up` - You can notice that errors will be thrown. Don't worry.
|
|
||||||
- If you see weird permission errors, especially on Mac, run `sudo spin up` instead.
|
|
||||||
|
|
||||||
### 4) Start development
|
|
||||||
You can login your Coolify instance at `localhost:8000` with `test@example.com` and `password`.
|
|
||||||
|
|
||||||
Your horizon (Laravel scheduler): `localhost:8000/horizon` - Only reachable if you logged in with root user.
|
|
||||||
|
|
||||||
Mails are caught by Mailpit: `localhost:8025`
|
|
||||||
|
|
||||||
## New Service Contribution
|
|
||||||
Check out the docs [here](https://coolify.io/docs/how-to-add-a-service).
|
|
||||||
|
|
103
README.md
103
README.md
@ -1,103 +0,0 @@
|
|||||||
# About the Project
|
|
||||||
|
|
||||||
Coolify is an open-source & self-hostable alternative to Heroku / Netlify / Vercel / etc.
|
|
||||||
|
|
||||||
It helps you to manage your servers, applications, databases on your own hardware, all you need is SSH connection. You can manage VPS, Bare Metal, Raspberry PI's anything.
|
|
||||||
|
|
||||||
Imagine if you could have the ease of a cloud but with your own servers. That is **Coolify**.
|
|
||||||
|
|
||||||
No vendor lock-in, which means that all the configuration for your applications/databases/etc are saved to your server. So if you decide to stop using Coolify (oh nooo), you could still manage your running resources. You just lose the automations and all the magic. 🪄️
|
|
||||||
|
|
||||||
For more information, take a look at our landing page [here](https://coolify.io).
|
|
||||||
|
|
||||||
# Installation
|
|
||||||
|
|
||||||
```bash
|
|
||||||
curl -fsSL https://cdn.coollabs.io/coolify/install.sh | bash
|
|
||||||
```
|
|
||||||
You can find the installation script source [here](./scripts/install.sh).
|
|
||||||
|
|
||||||
# Support
|
|
||||||
|
|
||||||
Contact us [here](https://coolify.io/docs/contact).
|
|
||||||
|
|
||||||
# Donations
|
|
||||||
To stay completely free, open-source, no feature behind paywall and evolve the project, we need your help. If you like Coolify, please consider donating to help us fund the future development of the project.
|
|
||||||
|
|
||||||
https://coolify.io/sponsorships
|
|
||||||
|
|
||||||
Thank you so much!
|
|
||||||
|
|
||||||
Special thanks to our biggest sponsors, [CCCareers](https://cccareers.org/) and [Appwrite](https://appwrite.io)!
|
|
||||||
|
|
||||||
<a href="https://cccareers.org/" target="_blank"><img src="./other/logos/ccc-logo.webp" alt="cccareers logo" width="200"/></a>
|
|
||||||
<a href="https://appwrite.io" target="_blank"><img src="./other/logos/appwrite.svg" alt="appwrite logo" width="200"/></a>
|
|
||||||
|
|
||||||
## Github Sponsors ($15+)
|
|
||||||
<a href="https://bc.direct"><img width="60px" alt="BC Direct" src="https://github.com/coollabsio/coolify/assets/5845193/a4063c41-95ed-4a32-8814-cd1475572e37"/></a>
|
|
||||||
<a href="https://github.com/automazeio"><img src="https://github.com/automazeio.png" width="60px" alt="Corentin Clichy" /></a>
|
|
||||||
<a href="https://github.com/corentinclichy"><img src="https://github.com/corentinclichy.png" width="60px" alt="Corentin Clichy" /></a>
|
|
||||||
<a href="https://github.com/Niki2k1"><img src="https://github.com/Niki2k1.png" width="60px" alt="Niklas Lausch" /></a>
|
|
||||||
<a href="https://github.com/pixelinfinito"><img src="https://github.com/pixelinfinito.png" width="60px" alt="Pixel Infinito" /></a>
|
|
||||||
<a href="https://github.com/whitesidest"><img src="https://avatars.githubusercontent.com/u/12365916?s=52&v=4" width="60px" alt="Tyler Whitesides" /></a>
|
|
||||||
<a href="https://github.com/aniftyco"><img src="https://github.com/aniftyco.png" width="60px" alt="NiftyCo" /></a>
|
|
||||||
<a href="https://github.com/iujlaki"><img src="https://github.com/iujlaki.png" width="60px" alt="Imre Ujlaki" /></a>
|
|
||||||
<a href="https://il.ly"><img src="https://github.com/Illyism.png" width="60px" alt="Ilias Ism" /></a>
|
|
||||||
<a href="https://github.com/urtho"><img src="https://github.com/urtho.png" width="60px" alt="Paweł Pierścionek" /></a>
|
|
||||||
<a href="https://github.com/monocursive"><img src="https://github.com/monocursive.png" width="60px" alt="Michael Mazurczak" /></a>
|
|
||||||
|
|
||||||
## Organizations
|
|
||||||
<a href="https://opencollective.com/coollabsio/organization/0/website"><img src="https://opencollective.com/coollabsio/organization/0/avatar.svg"></a>
|
|
||||||
<a href="https://opencollective.com/coollabsio/organization/1/website"><img src="https://opencollective.com/coollabsio/organization/1/avatar.svg"></a>
|
|
||||||
<a href="https://opencollective.com/coollabsio/organization/2/website"><img src="https://opencollective.com/coollabsio/organization/2/avatar.svg"></a>
|
|
||||||
<a href="https://opencollective.com/coollabsio/organization/3/website"><img src="https://opencollective.com/coollabsio/organization/3/avatar.svg"></a>
|
|
||||||
<a href="https://opencollective.com/coollabsio/organization/4/website"><img src="https://opencollective.com/coollabsio/organization/4/avatar.svg"></a>
|
|
||||||
<a href="https://opencollective.com/coollabsio/organization/5/website"><img src="https://opencollective.com/coollabsio/organization/5/avatar.svg"></a>
|
|
||||||
<a href="https://opencollective.com/coollabsio/organization/6/website"><img src="https://opencollective.com/coollabsio/organization/6/avatar.svg"></a>
|
|
||||||
<a href="https://opencollective.com/coollabsio/organization/7/website"><img src="https://opencollective.com/coollabsio/organization/7/avatar.svg"></a>
|
|
||||||
<a href="https://opencollective.com/coollabsio/organization/8/website"><img src="https://opencollective.com/coollabsio/organization/8/avatar.svg"></a>
|
|
||||||
<a href="https://opencollective.com/coollabsio/organization/9/website"><img src="https://opencollective.com/coollabsio/organization/9/avatar.svg"></a>
|
|
||||||
|
|
||||||
## Individuals
|
|
||||||
|
|
||||||
<a href="https://opencollective.com/coollabsio"><img src="https://opencollective.com/coollabsio/individuals.svg?width=890"></a>
|
|
||||||
|
|
||||||
# Cloud
|
|
||||||
|
|
||||||
If you do not want to self-host Coolify, there is a paid cloud version available: https://app.coolify.io
|
|
||||||
|
|
||||||
For more information & pricing, take a look at our landing page [here](https://coolify.io).
|
|
||||||
|
|
||||||
## Why should I use the Cloud version?
|
|
||||||
The recommended way to use Coolify is to have one server for Coolify and one (or more) for the resources you are deploying. A server is around 4-5$/month.
|
|
||||||
|
|
||||||
By subscribing to the cloud version, you get the Coolify server for the same price, but with:
|
|
||||||
- High-availability
|
|
||||||
- Free email notifications
|
|
||||||
- Better support
|
|
||||||
- Less maintenance for you
|
|
||||||
|
|
||||||
|
|
||||||
# Recognitions
|
|
||||||
|
|
||||||
<p>
|
|
||||||
<a href="https://news.ycombinator.com/item?id=26624341">
|
|
||||||
<img
|
|
||||||
style="width: 250px; height: 54px;" width="250" height="54"
|
|
||||||
alt="Featured on Hacker News"
|
|
||||||
src="https://hackernews-badge.vercel.app/api?id=26624341"
|
|
||||||
/>
|
|
||||||
</a>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<a href="https://www.producthunt.com/posts/coolify?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-coolify" target="_blank"><img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=338273&theme=light" alt="Coolify - An open-source & self-hostable Heroku, Netlify alternative | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" /></a>
|
|
||||||
|
|
||||||
<a href="https://trendshift.io/repositories/634" target="_blank"><img src="https://trendshift.io/api/badge/repositories/634" alt="coollabsio%2Fcoolify | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
|
|
||||||
|
|
||||||
# Repo Activity
|
|
||||||
|
|
||||||
![Alt](https://repobeats.axiom.co/api/embed/eab1c8066f9c59d0ad37b76c23ebb5ccac4278ae.svg "Repobeats analytics image")
|
|
||||||
|
|
||||||
# Star History
|
|
||||||
|
|
||||||
[![Star History Chart](https://api.star-history.com/svg?repos=coollabsio/coolify&type=Date)](https://star-history.com/#coollabsio/coolify&Date)
|
|
@ -64,7 +64,7 @@ private function update()
|
|||||||
} else {
|
} else {
|
||||||
ray('Running update on production server');
|
ray('Running update on production server');
|
||||||
remote_process([
|
remote_process([
|
||||||
"curl -fsSL https://cdn.coollabs.io/coolify/upgrade.sh -o /data/coolify/source/upgrade.sh",
|
"curl -fsSL https://cdn.lasthourhosting.org/lasthourcloud/scripts/upgrade.sh -o /data/coolify/source/upgrade.sh",
|
||||||
"bash /data/coolify/source/upgrade.sh $this->latestVersion"
|
"bash /data/coolify/source/upgrade.sh $this->latestVersion"
|
||||||
], $this->server);
|
], $this->server);
|
||||||
return;
|
return;
|
||||||
|
@ -58,7 +58,7 @@ private function restore_coolify_db_backup()
|
|||||||
try {
|
try {
|
||||||
$database = StandalonePostgresql::withTrashed()->find(0);
|
$database = StandalonePostgresql::withTrashed()->find(0);
|
||||||
if ($database && $database->trashed()) {
|
if ($database && $database->trashed()) {
|
||||||
echo "Restoring coolify db backup\n";
|
echo "Restoring Last Hour Cloud db backup\n";
|
||||||
$database->restore();
|
$database->restore();
|
||||||
$scheduledBackup = ScheduledDatabaseBackup::find(0);
|
$scheduledBackup = ScheduledDatabaseBackup::find(0);
|
||||||
if (!$scheduledBackup) {
|
if (!$scheduledBackup) {
|
||||||
@ -74,7 +74,7 @@ private function restore_coolify_db_backup()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
echo "Error in restoring coolify db backup: {$e->getMessage()}\n";
|
echo "Error in restoring Last Hour Cloud db backup: {$e->getMessage()}\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private function cleanup_stucked_helper_containers()
|
private function cleanup_stucked_helper_containers()
|
||||||
@ -97,7 +97,7 @@ private function alive()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
Http::get("https://undead.coolify.io/v4/alive?appId=$id&version=$version");
|
Http::get("");
|
||||||
echo "I am alive!\n";
|
echo "I am alive!\n";
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
echo "Error in alive: {$e->getMessage()}\n";
|
echo "Error in alive: {$e->getMessage()}\n";
|
||||||
|
@ -47,7 +47,7 @@ private function showHelp()
|
|||||||
<<<'HTML'
|
<<<'HTML'
|
||||||
<div>
|
<div>
|
||||||
<div class="title-box">
|
<div class="title-box">
|
||||||
Coolify
|
Last Hour Cloud
|
||||||
</div>
|
</div>
|
||||||
<p class="mt-1 ml-1 ">
|
<p class="mt-1 ml-1 ">
|
||||||
Demo Notify <strong class="text-coolify">=></strong> Send a demo notification to a given channel.
|
Demo Notify <strong class="text-coolify">=></strong> Send a demo notification to a given channel.
|
||||||
@ -70,7 +70,7 @@ private function showHelp()
|
|||||||
|
|
||||||
ask(<<<'HTML'
|
ask(<<<'HTML'
|
||||||
<div class="mr-1">
|
<div class="mr-1">
|
||||||
In which manner you wish a <strong class="text-coolify">coolified</strong> notification?
|
In which manner you wish a <strong class="text-coolify">Last Hour Cloud</strong> notification?
|
||||||
</div>
|
</div>
|
||||||
HTML, ['email', 'slack', 'discord', 'telegram']);
|
HTML, ['email', 'slack', 'discord', 'telegram']);
|
||||||
}
|
}
|
||||||
|
@ -24,17 +24,17 @@ public function deploy(Request $request)
|
|||||||
$force = $request->query->get('force') ?? false;
|
$force = $request->query->get('force') ?? false;
|
||||||
|
|
||||||
if ($uuids && $tags) {
|
if ($uuids && $tags) {
|
||||||
return response()->json(['error' => 'You can only use uuid or tag, not both.', 'docs' => 'https://coolify.io/docs/api/deploy-webhook'], 400);
|
return response()->json(['error' => 'You can only use uuid or tag, not both.', 'upstream docs' => 'https://coolify.io/docs/api/deploy-webhook'], 400);
|
||||||
}
|
}
|
||||||
if (is_null($teamId)) {
|
if (is_null($teamId)) {
|
||||||
return response()->json(['error' => 'Invalid token.', 'docs' => 'https://coolify.io/docs/api/authentication'], 400);
|
return response()->json(['error' => 'Invalid token.', 'upstream docs' => 'https://coolify.io/docs/api/authentication'], 400);
|
||||||
}
|
}
|
||||||
if ($tags) {
|
if ($tags) {
|
||||||
return $this->by_tags($tags, $teamId, $force);
|
return $this->by_tags($tags, $teamId, $force);
|
||||||
} else if ($uuids) {
|
} else if ($uuids) {
|
||||||
return $this->by_uuids($uuids, $teamId, $force);
|
return $this->by_uuids($uuids, $teamId, $force);
|
||||||
}
|
}
|
||||||
return response()->json(['error' => 'You must provide uuid or tag.', 'docs' => 'https://coolify.io/docs/api/deploy-webhook'], 400);
|
return response()->json(['error' => 'You must provide uuid or tag.', 'upstream docs' => 'https://coolify.io/docs/api/deploy-webhook'], 400);
|
||||||
}
|
}
|
||||||
private function by_uuids(string $uuid, int $teamId, bool $force = false)
|
private function by_uuids(string $uuid, int $teamId, bool $force = false)
|
||||||
{
|
{
|
||||||
@ -42,7 +42,7 @@ private function by_uuids(string $uuid, int $teamId, bool $force = false)
|
|||||||
$uuids = collect(array_filter($uuids));
|
$uuids = collect(array_filter($uuids));
|
||||||
|
|
||||||
if (count($uuids) === 0) {
|
if (count($uuids) === 0) {
|
||||||
return response()->json(['error' => 'No UUIDs provided.', 'docs' => 'https://coolify.io/docs/api/deploy-webhook'], 400);
|
return response()->json(['error' => 'No UUIDs provided.', 'upstream docs' => 'https://coolify.io/docs/api/deploy-webhook'], 400);
|
||||||
}
|
}
|
||||||
$message = collect([]);
|
$message = collect([]);
|
||||||
foreach ($uuids as $uuid) {
|
foreach ($uuids as $uuid) {
|
||||||
@ -55,7 +55,7 @@ private function by_uuids(string $uuid, int $teamId, bool $force = false)
|
|||||||
if ($message->count() > 0) {
|
if ($message->count() > 0) {
|
||||||
return response()->json(['message' => $message->toArray()], 200);
|
return response()->json(['message' => $message->toArray()], 200);
|
||||||
}
|
}
|
||||||
return response()->json(['error' => "No resources found.", 'docs' => 'https://coolify.io/docs/api/deploy-webhook'], 404);
|
return response()->json(['error' => "No resources found.", 'upstream docs' => 'https://coolify.io/docs/api/deploy-webhook'], 404);
|
||||||
}
|
}
|
||||||
public function by_tags(string $tags, int $team_id, bool $force = false)
|
public function by_tags(string $tags, int $team_id, bool $force = false)
|
||||||
{
|
{
|
||||||
@ -63,7 +63,7 @@ public function by_tags(string $tags, int $team_id, bool $force = false)
|
|||||||
$tags = collect(array_filter($tags));
|
$tags = collect(array_filter($tags));
|
||||||
|
|
||||||
if (count($tags) === 0) {
|
if (count($tags) === 0) {
|
||||||
return response()->json(['error' => 'No TAGs provided.', 'docs' => 'https://coolify.io/docs/api/deploy-webhook'], 400);
|
return response()->json(['error' => 'No TAGs provided.', 'upstream docs' => 'https://coolify.io/docs/api/deploy-webhook'], 400);
|
||||||
}
|
}
|
||||||
$message = collect([]);
|
$message = collect([]);
|
||||||
foreach ($tags as $tag) {
|
foreach ($tags as $tag) {
|
||||||
@ -91,7 +91,7 @@ public function by_tags(string $tags, int $team_id, bool $force = false)
|
|||||||
return response()->json(['message' => $message->toArray()], 200);
|
return response()->json(['message' => $message->toArray()], 200);
|
||||||
}
|
}
|
||||||
|
|
||||||
return response()->json(['error' => "No resources found.", 'docs' => 'https://coolify.io/docs/api/deploy-webhook'], 404);
|
return response()->json(['error' => "No resources found.", 'upstream docs' => 'https://coolify.io/docs/api/deploy-webhook'], 404);
|
||||||
}
|
}
|
||||||
public function deploy_resource($resource, bool $force = false): Collection
|
public function deploy_resource($resource, bool $force = false): Collection
|
||||||
{
|
{
|
||||||
|
@ -12,7 +12,7 @@ public function projects(Request $request)
|
|||||||
{
|
{
|
||||||
$teamId = get_team_id_from_token();
|
$teamId = get_team_id_from_token();
|
||||||
if (is_null($teamId)) {
|
if (is_null($teamId)) {
|
||||||
return response()->json(['error' => 'Invalid token.', 'docs' => 'https://coolify.io/docs/api/authentication'], 400);
|
return response()->json(['error' => 'Invalid token.', 'upstream docs' => 'https://coolify.io/docs/api/authentication'], 400);
|
||||||
}
|
}
|
||||||
$projects = ModelsProject::whereTeamId($teamId)->select('id', 'name', 'uuid')->get();
|
$projects = ModelsProject::whereTeamId($teamId)->select('id', 'name', 'uuid')->get();
|
||||||
return response()->json($projects);
|
return response()->json($projects);
|
||||||
@ -21,7 +21,7 @@ public function project_by_uuid(Request $request)
|
|||||||
{
|
{
|
||||||
$teamId = get_team_id_from_token();
|
$teamId = get_team_id_from_token();
|
||||||
if (is_null($teamId)) {
|
if (is_null($teamId)) {
|
||||||
return response()->json(['error' => 'Invalid token.', 'docs' => 'https://coolify.io/docs/api/authentication'], 400);
|
return response()->json(['error' => 'Invalid token.', 'upstream docs' => 'https://coolify.io/docs/api/authentication'], 400);
|
||||||
}
|
}
|
||||||
$project = ModelsProject::whereTeamId($teamId)->whereUuid(request()->uuid)->first()->load(['environments']);
|
$project = ModelsProject::whereTeamId($teamId)->whereUuid(request()->uuid)->first()->load(['environments']);
|
||||||
return response()->json($project);
|
return response()->json($project);
|
||||||
@ -30,7 +30,7 @@ public function environment_details(Request $request)
|
|||||||
{
|
{
|
||||||
$teamId = get_team_id_from_token();
|
$teamId = get_team_id_from_token();
|
||||||
if (is_null($teamId)) {
|
if (is_null($teamId)) {
|
||||||
return response()->json(['error' => 'Invalid token.', 'docs' => 'https://coolify.io/docs/api/authentication'], 400);
|
return response()->json(['error' => 'Invalid token.', 'upstream docs' => 'https://coolify.io/docs/api/authentication'], 400);
|
||||||
}
|
}
|
||||||
$project = ModelsProject::whereTeamId($teamId)->whereUuid(request()->uuid)->first();
|
$project = ModelsProject::whereTeamId($teamId)->whereUuid(request()->uuid)->first();
|
||||||
$environment = $project->environments()->whereName(request()->environment_name)->first()->load(['applications', 'postgresqls', 'redis', 'mongodbs', 'mysqls', 'mariadbs', 'services']);
|
$environment = $project->environments()->whereName(request()->environment_name)->first()->load(['applications', 'postgresqls', 'redis', 'mongodbs', 'mysqls', 'mariadbs', 'services']);
|
||||||
|
@ -12,7 +12,7 @@ public function servers(Request $request)
|
|||||||
{
|
{
|
||||||
$teamId = get_team_id_from_token();
|
$teamId = get_team_id_from_token();
|
||||||
if (is_null($teamId)) {
|
if (is_null($teamId)) {
|
||||||
return response()->json(['error' => 'Invalid token.', 'docs' => 'https://coolify.io/docs/api/authentication'], 400);
|
return response()->json(['error' => 'Invalid token.', 'upstream docs' => 'https://coolify.io/docs/api/authentication'], 400);
|
||||||
}
|
}
|
||||||
$servers = ModelsServer::whereTeamId($teamId)->select('id', 'name', 'uuid', 'ip', 'user', 'port')->get()->load(['settings'])->map(function ($server) {
|
$servers = ModelsServer::whereTeamId($teamId)->select('id', 'name', 'uuid', 'ip', 'user', 'port')->get()->load(['settings'])->map(function ($server) {
|
||||||
$server['is_reachable'] = $server->settings->is_reachable;
|
$server['is_reachable'] = $server->settings->is_reachable;
|
||||||
@ -26,7 +26,7 @@ public function server_by_uuid(Request $request)
|
|||||||
{
|
{
|
||||||
$teamId = get_team_id_from_token();
|
$teamId = get_team_id_from_token();
|
||||||
if (is_null($teamId)) {
|
if (is_null($teamId)) {
|
||||||
return response()->json(['error' => 'Invalid token.', 'docs' => 'https://coolify.io/docs/api/authentication'], 400);
|
return response()->json(['error' => 'Invalid token.', 'upstream docs' => 'https://coolify.io/docs/api/authentication'], 400);
|
||||||
}
|
}
|
||||||
$server = ModelsServer::whereTeamId($teamId)->whereUuid(request()->uuid)->first();
|
$server = ModelsServer::whereTeamId($teamId)->whereUuid(request()->uuid)->first();
|
||||||
if (is_null($server)) {
|
if (is_null($server)) {
|
||||||
|
@ -58,8 +58,8 @@ public function mount()
|
|||||||
AAAECBQw4jg1WRT2IGHMncCiZhURCts2s24HoDS0thHnnRKVuGmoeGq/pojrsyP1pszcNV
|
AAAECBQw4jg1WRT2IGHMncCiZhURCts2s24HoDS0thHnnRKVuGmoeGq/pojrsyP1pszcNV
|
||||||
uZx9iFkCELtxrh31QJ68AAAAEXNhaWxANzZmZjY2ZDJlMmRkAQIDBA==
|
uZx9iFkCELtxrh31QJ68AAAAEXNhaWxANzZmZjY2ZDJlMmRkAQIDBA==
|
||||||
-----END OPENSSH PRIVATE KEY-----';
|
-----END OPENSSH PRIVATE KEY-----';
|
||||||
$this->privateKeyDescription = 'Created by Coolify';
|
$this->privateKeyDescription = 'Created by Last Hour Cloud';
|
||||||
$this->remoteServerDescription = 'Created by Coolify';
|
$this->remoteServerDescription = 'Created by Last Hour Cloud';
|
||||||
$this->remoteServerHost = 'coolify-testing-host';
|
$this->remoteServerHost = 'coolify-testing-host';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -280,7 +280,7 @@ public function showNewResource()
|
|||||||
private function createNewPrivateKey()
|
private function createNewPrivateKey()
|
||||||
{
|
{
|
||||||
$this->privateKeyName = generate_random_name();
|
$this->privateKeyName = generate_random_name();
|
||||||
$this->privateKeyDescription = 'Created by Coolify';
|
$this->privateKeyDescription = 'Created by Last Hour Cloud';
|
||||||
['private' => $this->privateKey, 'public' => $this->publicKey] = generateSSHKey();
|
['private' => $this->privateKey, 'public' => $this->publicKey] = generateSSHKey();
|
||||||
}
|
}
|
||||||
public function render()
|
public function render()
|
||||||
|
@ -55,7 +55,7 @@ public function submit()
|
|||||||
} else {
|
} else {
|
||||||
send_user_an_email($mail, auth()->user()?->email, 'support@lasthourhosting.org');
|
send_user_an_email($mail, auth()->user()?->email, 'support@lasthourhosting.org');
|
||||||
}
|
}
|
||||||
$this->dispatch('success', 'Feedback sent.', 'Thank you! We will get in touch with you as soon as possible.');
|
$this->dispatch('success', 'Help request sent.', 'Thank you! We will get in touch with you as soon as possible.');
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
return handleError($e, $this);
|
return handleError($e, $this);
|
||||||
}
|
}
|
||||||
|
@ -240,7 +240,7 @@ public function submit($showToaster = true)
|
|||||||
if ($this->application->additional_servers->count() === 0) {
|
if ($this->application->additional_servers->count() === 0) {
|
||||||
foreach ($domains as $domain) {
|
foreach ($domains as $domain) {
|
||||||
if (!validate_dns_entry($domain, $this->application->destination->server)) {
|
if (!validate_dns_entry($domain, $this->application->destination->server)) {
|
||||||
$showToaster && $this->dispatch('error', "Validating DNS ($domain) failed.", "Make sure you have added the DNS records correctly.<br><br>Check this <a target='_blank' class='text-white underline' href='https://coolify.io/docs/dns-settings'>documentation</a> for further help.");
|
$showToaster && $this->dispatch('error', "Validating DNS ($domain) failed.", "Make sure you have added the DNS records correctly.<br><br>Check this upstream <a target='_blank' class='text-white underline' href='https://coolify.io/docs/dns-settings'>documentation</a> for further help.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -60,7 +60,7 @@ public function deploy(bool $force_rebuild = false)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (data_get($this->application, 'settings.is_build_server_enabled') && str($this->application->docker_registry_image_name)->isEmpty()) {
|
if (data_get($this->application, 'settings.is_build_server_enabled') && str($this->application->docker_registry_image_name)->isEmpty()) {
|
||||||
$this->dispatch('error', 'Failed to deploy.', 'To use a build server, you must first set a Docker image.<br>More information here: <a target="_blank" class="underline" href="https://coolify.io/docs/server/build-server">documentation</a>');
|
$this->dispatch('error', 'Failed to deploy.', 'To use a build server, you must first set a Docker image.<br>More information here in upstream docs: <a target="_blank" class="underline" href="https://coolify.io/docs/server/build-server">documentation</a>');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if ($this->application->additional_servers->count() > 0 && str($this->application->docker_registry_image_name)->isEmpty()) {
|
if ($this->application->additional_servers->count() > 0 && str($this->application->docker_registry_image_name)->isEmpty()) {
|
||||||
@ -103,7 +103,7 @@ public function stop()
|
|||||||
public function restart()
|
public function restart()
|
||||||
{
|
{
|
||||||
if ($this->application->additional_servers->count() > 0 && str($this->application->docker_registry_image_name)->isEmpty()) {
|
if ($this->application->additional_servers->count() > 0 && str($this->application->docker_registry_image_name)->isEmpty()) {
|
||||||
$this->dispatch('error', 'Failed to deploy', 'Before deploying to multiple servers, you must first set a Docker image in the General tab.<br>More information here: <a target="_blank" class="underline" href="https://coolify.io/docs/server/multiple-servers">documentation</a>');
|
$this->dispatch('error', 'Failed to deploy', 'Before deploying to multiple servers, you must first set a Docker image in the General tab.<br>More information here in upstream docs: <a target="_blank" class="underline" href="https://coolify.io/docs/server/multiple-servers">documentation</a>');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$this->setDeploymentUuid();
|
$this->setDeploymentUuid();
|
||||||
|
@ -44,7 +44,7 @@ public function loadData()
|
|||||||
public function redeploy(int $network_id, int $server_id)
|
public function redeploy(int $network_id, int $server_id)
|
||||||
{
|
{
|
||||||
if ($this->resource->additional_servers->count() > 0 && str($this->resource->docker_registry_image_name)->isEmpty()) {
|
if ($this->resource->additional_servers->count() > 0 && str($this->resource->docker_registry_image_name)->isEmpty()) {
|
||||||
$this->dispatch('error', 'Failed to deploy.', 'Before deploying to multiple servers, you must first set a Docker image in the General tab.<br>More information here: <a target="_blank" class="underline" href="https://coolify.io/docs/server/multiple-servers">documentation</a>');
|
$this->dispatch('error', 'Failed to deploy.', 'Before deploying to multiple servers, you must first set a Docker image in the General tab.<br>More information here in upstream docs: <a target="_blank" class="underline" href="https://coolify.io/docs/server/multiple-servers">documentation</a>');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$deployment_uuid = new Cuid2(7);
|
$deployment_uuid = new Cuid2(7);
|
||||||
|
@ -31,7 +31,7 @@ public function generateNewKey()
|
|||||||
try {
|
try {
|
||||||
$this->rateLimit(10);
|
$this->rateLimit(10);
|
||||||
$this->name = generate_random_name();
|
$this->name = generate_random_name();
|
||||||
$this->description = 'Created by Coolify';
|
$this->description = 'Created by Last Hour Cloud';
|
||||||
['private' => $this->value, 'public' => $this->publicKey] = generateSSHKey();
|
['private' => $this->value, 'public' => $this->publicKey] = generateSSHKey();
|
||||||
} catch(\Throwable $e) {
|
} catch(\Throwable $e) {
|
||||||
return handleError($e, $this);
|
return handleError($e, $this);
|
||||||
|
@ -82,7 +82,7 @@ public function checkLocalhostConnection()
|
|||||||
$this->server->settings->is_usable = true;
|
$this->server->settings->is_usable = true;
|
||||||
$this->server->settings->save();
|
$this->server->settings->save();
|
||||||
} else {
|
} else {
|
||||||
$this->dispatch('error', 'Server is not reachable.', 'Please validate your configuration and connection.<br><br>Check this <a target="_blank" class="underline" href="https://coolify.io/docs/server/openssh">documentation</a> for further help.');
|
$this->dispatch('error', 'Server is not reachable.', 'Please validate your configuration and connection.<br><br>Check this upstream <a target="_blank" class="underline" href="https://coolify.io/docs/server/openssh">documentation</a> for further help.');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -39,7 +39,7 @@ public function checkConnection()
|
|||||||
if ($uptime) {
|
if ($uptime) {
|
||||||
$this->dispatch('success', 'Server is reachable.');
|
$this->dispatch('success', 'Server is reachable.');
|
||||||
} else {
|
} else {
|
||||||
$this->dispatch('error', 'Server is not reachable.<br>Please validate your configuration and connection.<br><br>Check this <a target="_blank" class="underline" href="https://coolify.io/docs/server/openssh#openssh">documentation</a> for further help.');
|
$this->dispatch('error', 'Server is not reachable.<br>Please validate your configuration and connection.<br><br>Check this upstream <a target="_blank" class="underline" href="https://coolify.io/docs/server/openssh#openssh">documentation</a> for further help.');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
|
@ -68,7 +68,7 @@ public function validateConnection()
|
|||||||
{
|
{
|
||||||
$this->uptime = $this->server->validateConnection();
|
$this->uptime = $this->server->validateConnection();
|
||||||
if (!$this->uptime) {
|
if (!$this->uptime) {
|
||||||
$this->error = 'Server is not reachable. Please validate your configuration and connection.<br><br>Check this <a target="_blank" class="underline" href="https://coolify.io/docs/server/openssh">documentation</a> for further help.';
|
$this->error = 'Server is not reachable. Please validate your configuration and connection.<br><br>Check this upstream <a target="_blank" class="underline" href="https://coolify.io/docs/server/openssh">documentation</a> for further help.';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -47,7 +47,7 @@ public function testConnection(bool $shouldSave = false)
|
|||||||
$this->is_usable = false;
|
$this->is_usable = false;
|
||||||
if ($this->unusable_email_sent === false && is_transactional_emails_active()) {
|
if ($this->unusable_email_sent === false && is_transactional_emails_active()) {
|
||||||
$mail = new MailMessage();
|
$mail = new MailMessage();
|
||||||
$mail->subject('Last Hour: S3 Storage Connection Error');
|
$mail->subject('Last Hour Cloud: S3 Storage Connection Error');
|
||||||
$mail->view('emails.s3-connection-error', ['name' => $this->name, 'reason' => $e->getMessage(), 'url' => route('team.storage.show', ['storage_uuid' => $this->uuid])]);
|
$mail->view('emails.s3-connection-error', ['name' => $this->name, 'reason' => $e->getMessage(), 'url' => route('team.storage.show', ['storage_uuid' => $this->uuid])]);
|
||||||
$users = collect([]);
|
$users = collect([]);
|
||||||
$members = $this->team->members()->get();
|
$members = $this->team->members()->get();
|
||||||
|
@ -93,7 +93,7 @@ public function sendVerificationEmail()
|
|||||||
$mail->view('emails.email-verification', [
|
$mail->view('emails.email-verification', [
|
||||||
'url' => $url,
|
'url' => $url,
|
||||||
]);
|
]);
|
||||||
$mail->subject('Last Hour: Verify your email.');
|
$mail->subject('Last Hour Cloud: Verify your email.');
|
||||||
send_user_an_email($mail, $this->email);
|
send_user_an_email($mail, $this->email);
|
||||||
}
|
}
|
||||||
public function sendPasswordResetNotification($token): void
|
public function sendPasswordResetNotification($token): void
|
||||||
|
@ -52,10 +52,10 @@ public function toMail(): MailMessage
|
|||||||
$pull_request_id = data_get($this->preview, 'pull_request_id', 0);
|
$pull_request_id = data_get($this->preview, 'pull_request_id', 0);
|
||||||
$fqdn = $this->fqdn;
|
$fqdn = $this->fqdn;
|
||||||
if ($pull_request_id === 0) {
|
if ($pull_request_id === 0) {
|
||||||
$mail->subject('Last Hour: Deployment failed of ' . $this->application_name . '.');
|
$mail->subject('Last Hour Cloud: Deployment failed of ' . $this->application_name . '.');
|
||||||
} else {
|
} else {
|
||||||
$fqdn = $this->preview->fqdn;
|
$fqdn = $this->preview->fqdn;
|
||||||
$mail->subject('Last Hour: Deployment failed of pull request #' . $this->preview->pull_request_id . ' of ' . $this->application_name . '.');
|
$mail->subject('Last Hour Cloud: Deployment failed of pull request #' . $this->preview->pull_request_id . ' of ' . $this->application_name . '.');
|
||||||
}
|
}
|
||||||
$mail->view('emails.application-deployment-failed', [
|
$mail->view('emails.application-deployment-failed', [
|
||||||
'name' => $this->application_name,
|
'name' => $this->application_name,
|
||||||
@ -69,10 +69,10 @@ public function toMail(): MailMessage
|
|||||||
public function toDiscord(): string
|
public function toDiscord(): string
|
||||||
{
|
{
|
||||||
if ($this->preview) {
|
if ($this->preview) {
|
||||||
$message = 'Last Hour: Pull request #' . $this->preview->pull_request_id . ' of **' . $this->application_name . '** (' . $this->preview->fqdn . ') deployment failed: ';
|
$message = 'Last Hour Cloud: Pull request #' . $this->preview->pull_request_id . ' of **' . $this->application_name . '** (' . $this->preview->fqdn . ') deployment failed: ';
|
||||||
$message .= '[View Deployment Logs](' . $this->deployment_url . ')';
|
$message .= '[View Deployment Logs](' . $this->deployment_url . ')';
|
||||||
} else {
|
} else {
|
||||||
$message = 'Last Hour: Deployment failed of **' . $this->application_name . '** (' . $this->fqdn . '): ';
|
$message = 'Last Hour Cloud: Deployment failed of **' . $this->application_name . '** (' . $this->fqdn . '): ';
|
||||||
$message .= '[View Deployment Logs](' . $this->deployment_url . ')';
|
$message .= '[View Deployment Logs](' . $this->deployment_url . ')';
|
||||||
}
|
}
|
||||||
return $message;
|
return $message;
|
||||||
@ -80,9 +80,9 @@ public function toDiscord(): string
|
|||||||
public function toTelegram(): array
|
public function toTelegram(): array
|
||||||
{
|
{
|
||||||
if ($this->preview) {
|
if ($this->preview) {
|
||||||
$message = 'Last Hour: Pull request #' . $this->preview->pull_request_id . ' of **' . $this->application_name . '** (' . $this->preview->fqdn . ') deployment failed: ';
|
$message = 'Last Hour Cloud: Pull request #' . $this->preview->pull_request_id . ' of **' . $this->application_name . '** (' . $this->preview->fqdn . ') deployment failed: ';
|
||||||
} else {
|
} else {
|
||||||
$message = 'Last Hour: Deployment failed of **' . $this->application_name . '** (' . $this->fqdn . '): ';
|
$message = 'Last Hour Cloud: Deployment failed of **' . $this->application_name . '** (' . $this->fqdn . '): ';
|
||||||
}
|
}
|
||||||
$buttons[] = [
|
$buttons[] = [
|
||||||
"text" => "Deployment logs",
|
"text" => "Deployment logs",
|
||||||
|
@ -52,10 +52,10 @@ public function toMail(): MailMessage
|
|||||||
$pull_request_id = data_get($this->preview, 'pull_request_id', 0);
|
$pull_request_id = data_get($this->preview, 'pull_request_id', 0);
|
||||||
$fqdn = $this->fqdn;
|
$fqdn = $this->fqdn;
|
||||||
if ($pull_request_id === 0) {
|
if ($pull_request_id === 0) {
|
||||||
$mail->subject("Last Hour: New version is deployed of {$this->application_name}");
|
$mail->subject("Last Hour Cloud: New version is deployed of {$this->application_name}");
|
||||||
} else {
|
} else {
|
||||||
$fqdn = $this->preview->fqdn;
|
$fqdn = $this->preview->fqdn;
|
||||||
$mail->subject("Last Hour: Pull request #{$pull_request_id} of {$this->application_name} deployed successfully");
|
$mail->subject("Last Hour Cloud: Pull request #{$pull_request_id} of {$this->application_name} deployed successfully");
|
||||||
}
|
}
|
||||||
$mail->view('emails.application-deployment-success', [
|
$mail->view('emails.application-deployment-success', [
|
||||||
'name' => $this->application_name,
|
'name' => $this->application_name,
|
||||||
@ -69,7 +69,7 @@ public function toMail(): MailMessage
|
|||||||
public function toDiscord(): string
|
public function toDiscord(): string
|
||||||
{
|
{
|
||||||
if ($this->preview) {
|
if ($this->preview) {
|
||||||
$message = 'Last Hour: New PR' . $this->preview->pull_request_id . ' version successfully deployed of ' . $this->application_name . '
|
$message = 'Last Hour Cloud: New PR' . $this->preview->pull_request_id . ' version successfully deployed of ' . $this->application_name . '
|
||||||
|
|
||||||
';
|
';
|
||||||
if ($this->preview->fqdn) {
|
if ($this->preview->fqdn) {
|
||||||
@ -77,7 +77,7 @@ public function toDiscord(): string
|
|||||||
}
|
}
|
||||||
$message .= '[Deployment logs](' . $this->deployment_url . ')';
|
$message .= '[Deployment logs](' . $this->deployment_url . ')';
|
||||||
} else {
|
} else {
|
||||||
$message = 'Last Hour: New version successfully deployed of ' . $this->application_name . '
|
$message = 'Last Hour Cloud: New version successfully deployed of ' . $this->application_name . '
|
||||||
|
|
||||||
';
|
';
|
||||||
if ($this->fqdn) {
|
if ($this->fqdn) {
|
||||||
@ -90,7 +90,7 @@ public function toDiscord(): string
|
|||||||
public function toTelegram(): array
|
public function toTelegram(): array
|
||||||
{
|
{
|
||||||
if ($this->preview) {
|
if ($this->preview) {
|
||||||
$message = 'Last Hour: New PR' . $this->preview->pull_request_id . ' version successfully deployed of ' . $this->application_name . '';
|
$message = 'Last Hour Cloud: New PR' . $this->preview->pull_request_id . ' version successfully deployed of ' . $this->application_name . '';
|
||||||
if ($this->preview->fqdn) {
|
if ($this->preview->fqdn) {
|
||||||
$buttons[] = [
|
$buttons[] = [
|
||||||
"text" => "Open Application",
|
"text" => "Open Application",
|
||||||
|
@ -43,7 +43,7 @@ public function toMail(): MailMessage
|
|||||||
{
|
{
|
||||||
$mail = new MailMessage();
|
$mail = new MailMessage();
|
||||||
$fqdn = $this->fqdn;
|
$fqdn = $this->fqdn;
|
||||||
$mail->subject("Last Hour: {$this->resource_name} has been stopped");
|
$mail->subject("Last Hour Cloud: {$this->resource_name} has been stopped");
|
||||||
$mail->view('emails.application-status-changes', [
|
$mail->view('emails.application-status-changes', [
|
||||||
'name' => $this->resource_name,
|
'name' => $this->resource_name,
|
||||||
'fqdn' => $fqdn,
|
'fqdn' => $fqdn,
|
||||||
@ -54,20 +54,20 @@ public function toMail(): MailMessage
|
|||||||
|
|
||||||
public function toDiscord(): string
|
public function toDiscord(): string
|
||||||
{
|
{
|
||||||
$message = 'Last Hour: ' . $this->resource_name . ' has been stopped.
|
$message = 'Last Hour Cloud: ' . $this->resource_name . ' has been stopped.
|
||||||
|
|
||||||
';
|
';
|
||||||
$message .= '[Open Application in Last Hour](' . $this->resource_url . ')';
|
$message .= '[Open Application in Last Hour Cloud](' . $this->resource_url . ')';
|
||||||
return $message;
|
return $message;
|
||||||
}
|
}
|
||||||
public function toTelegram(): array
|
public function toTelegram(): array
|
||||||
{
|
{
|
||||||
$message = 'Last Hour: ' . $this->resource_name . ' has been stopped.';
|
$message = 'Last Hour Cloud: ' . $this->resource_name . ' has been stopped.';
|
||||||
return [
|
return [
|
||||||
"message" => $message,
|
"message" => $message,
|
||||||
"buttons" => [
|
"buttons" => [
|
||||||
[
|
[
|
||||||
"text" => "Open Application in Last Hour",
|
"text" => "Open Application in Last Hour Cloud",
|
||||||
"url" => $this->resource_url
|
"url" => $this->resource_url
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
|
@ -27,7 +27,7 @@ public function via(object $notifiable): array
|
|||||||
public function toMail(): MailMessage
|
public function toMail(): MailMessage
|
||||||
{
|
{
|
||||||
$mail = new MailMessage();
|
$mail = new MailMessage();
|
||||||
$mail->subject("Last Hour: A resource ({$this->name}) has been restarted automatically on {$this->server->name}");
|
$mail->subject("Last Hour Cloud: A resource ({$this->name}) has been restarted automatically on {$this->server->name}");
|
||||||
$mail->view('emails.container-restarted', [
|
$mail->view('emails.container-restarted', [
|
||||||
'containerName' => $this->name,
|
'containerName' => $this->name,
|
||||||
'serverName' => $this->server->name,
|
'serverName' => $this->server->name,
|
||||||
@ -38,12 +38,12 @@ public function toMail(): MailMessage
|
|||||||
|
|
||||||
public function toDiscord(): string
|
public function toDiscord(): string
|
||||||
{
|
{
|
||||||
$message = "Last Hour: A resource ({$this->name}) has been restarted automatically on {$this->server->name}";
|
$message = "Last Hour Cloud: A resource ({$this->name}) has been restarted automatically on {$this->server->name}";
|
||||||
return $message;
|
return $message;
|
||||||
}
|
}
|
||||||
public function toTelegram(): array
|
public function toTelegram(): array
|
||||||
{
|
{
|
||||||
$message = "Last Hour: A resource ({$this->name}) has been restarted automatically on {$this->server->name}";
|
$message = "Last Hour Cloud: A resource ({$this->name}) has been restarted automatically on {$this->server->name}";
|
||||||
$payload = [
|
$payload = [
|
||||||
"message" => $message,
|
"message" => $message,
|
||||||
];
|
];
|
||||||
@ -51,7 +51,7 @@ public function toTelegram(): array
|
|||||||
$payload['buttons'] = [
|
$payload['buttons'] = [
|
||||||
[
|
[
|
||||||
[
|
[
|
||||||
"text" => "Check Proxy in Last Hour",
|
"text" => "Check Proxy in Last Hour Cloud",
|
||||||
"url" => $this->url
|
"url" => $this->url
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
@ -26,7 +26,7 @@ public function via(object $notifiable): array
|
|||||||
public function toMail(): MailMessage
|
public function toMail(): MailMessage
|
||||||
{
|
{
|
||||||
$mail = new MailMessage();
|
$mail = new MailMessage();
|
||||||
$mail->subject("Last Hour: A resource has been stopped unexpectedly on {$this->server->name}");
|
$mail->subject("Last Hour Cloud: A resource has been stopped unexpectedly on {$this->server->name}");
|
||||||
$mail->view('emails.container-stopped', [
|
$mail->view('emails.container-stopped', [
|
||||||
'containerName' => $this->name,
|
'containerName' => $this->name,
|
||||||
'serverName' => $this->server->name,
|
'serverName' => $this->server->name,
|
||||||
@ -37,12 +37,12 @@ public function toMail(): MailMessage
|
|||||||
|
|
||||||
public function toDiscord(): string
|
public function toDiscord(): string
|
||||||
{
|
{
|
||||||
$message = "Last Hour: A resource ($this->name) has been stopped unexpectedly on {$this->server->name}";
|
$message = "Last Hour Cloud: A resource ($this->name) has been stopped unexpectedly on {$this->server->name}";
|
||||||
return $message;
|
return $message;
|
||||||
}
|
}
|
||||||
public function toTelegram(): array
|
public function toTelegram(): array
|
||||||
{
|
{
|
||||||
$message = "Last Hour: A resource ($this->name) has been stopped unexpectedly on {$this->server->name}";
|
$message = "Last Hour Cloud: A resource ($this->name) has been stopped unexpectedly on {$this->server->name}";
|
||||||
$payload = [
|
$payload = [
|
||||||
"message" => $message,
|
"message" => $message,
|
||||||
];
|
];
|
||||||
@ -50,7 +50,7 @@ public function toTelegram(): array
|
|||||||
$payload['buttons'] = [
|
$payload['buttons'] = [
|
||||||
[
|
[
|
||||||
[
|
[
|
||||||
"text" => "Open Application in Last Hour",
|
"text" => "Open Application in Last Hour Cloud",
|
||||||
"url" => $this->url
|
"url" => $this->url
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
@ -33,7 +33,7 @@ public function via(object $notifiable): array
|
|||||||
public function toMail(): MailMessage
|
public function toMail(): MailMessage
|
||||||
{
|
{
|
||||||
$mail = new MailMessage();
|
$mail = new MailMessage();
|
||||||
$mail->subject("Last Hour: [ACTION REQUIRED] Backup FAILED for {$this->database->name}");
|
$mail->subject("Last Hour Cloud: [ACTION REQUIRED] Backup FAILED for {$this->database->name}");
|
||||||
$mail->view('emails.backup-failed', [
|
$mail->view('emails.backup-failed', [
|
||||||
'name' => $this->name,
|
'name' => $this->name,
|
||||||
'frequency' => $this->frequency,
|
'frequency' => $this->frequency,
|
||||||
@ -44,11 +44,11 @@ public function toMail(): MailMessage
|
|||||||
|
|
||||||
public function toDiscord(): string
|
public function toDiscord(): string
|
||||||
{
|
{
|
||||||
return "Last Hour: Database backup for {$this->name} with frequency of {$this->frequency} was FAILED.\n\nReason: {$this->output}";
|
return "Last Hour Cloud: Database backup for {$this->name} with frequency of {$this->frequency} was FAILED.\n\nReason: {$this->output}";
|
||||||
}
|
}
|
||||||
public function toTelegram(): array
|
public function toTelegram(): array
|
||||||
{
|
{
|
||||||
$message = "Last Hour: Database backup for {$this->name} with frequency of {$this->frequency} was FAILED.\n\nReason: {$this->output}";
|
$message = "Last Hour Cloud: Database backup for {$this->name} with frequency of {$this->frequency} was FAILED.\n\nReason: {$this->output}";
|
||||||
return [
|
return [
|
||||||
"message" => $message,
|
"message" => $message,
|
||||||
];
|
];
|
||||||
|
@ -30,7 +30,7 @@ public function via(object $notifiable): array
|
|||||||
public function toMail(): MailMessage
|
public function toMail(): MailMessage
|
||||||
{
|
{
|
||||||
$mail = new MailMessage();
|
$mail = new MailMessage();
|
||||||
$mail->subject("Last Hour: Backup successfully done for {$this->database->name}");
|
$mail->subject("Last Hour Cloud: Backup successfully done for {$this->database->name}");
|
||||||
$mail->view('emails.backup-success', [
|
$mail->view('emails.backup-success', [
|
||||||
'name' => $this->name,
|
'name' => $this->name,
|
||||||
'frequency' => $this->frequency,
|
'frequency' => $this->frequency,
|
||||||
@ -40,11 +40,11 @@ public function toMail(): MailMessage
|
|||||||
|
|
||||||
public function toDiscord(): string
|
public function toDiscord(): string
|
||||||
{
|
{
|
||||||
return "Last Hour: Database backup for {$this->name} with frequency of {$this->frequency} was successful.";
|
return "Last Hour Cloud: Database backup for {$this->name} with frequency of {$this->frequency} was successful.";
|
||||||
}
|
}
|
||||||
public function toTelegram(): array
|
public function toTelegram(): array
|
||||||
{
|
{
|
||||||
$message = "Last Hour: Database backup for {$this->name} with frequency of {$this->frequency} was successful.";
|
$message = "Last Hour Cloud: Database backup for {$this->name} with frequency of {$this->frequency} was successful.";
|
||||||
return [
|
return [
|
||||||
"message" => $message,
|
"message" => $message,
|
||||||
];
|
];
|
||||||
|
@ -42,7 +42,7 @@ public function via(object $notifiable): array
|
|||||||
public function toMail(): MailMessage
|
public function toMail(): MailMessage
|
||||||
{
|
{
|
||||||
$mail = new MailMessage();
|
$mail = new MailMessage();
|
||||||
$mail->subject("Last Hour: Server ({$this->server->name}) high disk usage detected!");
|
$mail->subject("Last Hour Cloud: Server ({$this->server->name}) high disk usage detected!");
|
||||||
$mail->view('emails.high-disk-usage', [
|
$mail->view('emails.high-disk-usage', [
|
||||||
'name' => $this->server->name,
|
'name' => $this->server->name,
|
||||||
'disk_usage' => $this->disk_usage,
|
'disk_usage' => $this->disk_usage,
|
||||||
@ -53,13 +53,13 @@ public function toMail(): MailMessage
|
|||||||
|
|
||||||
public function toDiscord(): string
|
public function toDiscord(): string
|
||||||
{
|
{
|
||||||
$message = "Last Hour: Server '{$this->server->name}' high disk usage detected!\nDisk usage: {$this->disk_usage}%. Threshold: {$this->cleanup_after_percentage}%.\nPlease cleanup your disk to prevent data-loss.\nHere are some tips: https://coolify.io/docs/automated-cleanup.";
|
$message = "Last Hour Cloud: Server '{$this->server->name}' high disk usage detected!\nDisk usage: {$this->disk_usage}%. Threshold: {$this->cleanup_after_percentage}%.\nPlease cleanup your disk to prevent data-loss.\nHere are some tips from upstream docs: https://coolify.io/docs/automated-cleanup.";
|
||||||
return $message;
|
return $message;
|
||||||
}
|
}
|
||||||
public function toTelegram(): array
|
public function toTelegram(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
"message" => "Last Hour: Server '{$this->server->name}' high disk usage detected!\nDisk usage: {$this->disk_usage}%. Threshold: {$this->cleanup_after_percentage}%.\nPlease cleanup your disk to prevent data-loss.\nHere are some tips: https://coolify.io/docs/automated-cleanup."
|
"message" => "Last Hour Cloud: Server '{$this->server->name}' high disk usage detected!\nDisk usage: {$this->disk_usage}%. Threshold: {$this->cleanup_after_percentage}%.\nPlease cleanup your disk to prevent data-loss.\nHere are some tips from upstream docs: https://coolify.io/docs/automated-cleanup."
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -45,7 +45,7 @@ public function via(object $notifiable): array
|
|||||||
public function toMail(): MailMessage
|
public function toMail(): MailMessage
|
||||||
{
|
{
|
||||||
$mail = new MailMessage();
|
$mail = new MailMessage();
|
||||||
$mail->subject("Last Hour: Server ({$this->server->name}) revived.");
|
$mail->subject("Last Hour Cloud: Server ({$this->server->name}) revived.");
|
||||||
$mail->view('emails.server-revived', [
|
$mail->view('emails.server-revived', [
|
||||||
'name' => $this->server->name,
|
'name' => $this->server->name,
|
||||||
]);
|
]);
|
||||||
@ -54,13 +54,13 @@ public function toMail(): MailMessage
|
|||||||
|
|
||||||
public function toDiscord(): string
|
public function toDiscord(): string
|
||||||
{
|
{
|
||||||
$message = "Last Hour: Server '{$this->server->name}' revived. All automations & integrations are turned on again!";
|
$message = "Last Hour Cloud: Server '{$this->server->name}' revived. All automations & integrations are turned on again!";
|
||||||
return $message;
|
return $message;
|
||||||
}
|
}
|
||||||
public function toTelegram(): array
|
public function toTelegram(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
"message" => "Last Hour: Server '{$this->server->name}' revived. All automations & integrations are turned on again!"
|
"message" => "Last Hour Cloud: Server '{$this->server->name}' revived. All automations & integrations are turned on again!"
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -43,7 +43,7 @@ public function via(object $notifiable): array
|
|||||||
public function toMail(): MailMessage
|
public function toMail(): MailMessage
|
||||||
{
|
{
|
||||||
$mail = new MailMessage();
|
$mail = new MailMessage();
|
||||||
$mail->subject("Last Hour: Your server ({$this->server->name}) is unreachable.");
|
$mail->subject("Last Hour Cloud: Your server ({$this->server->name}) is unreachable.");
|
||||||
$mail->view('emails.server-lost-connection', [
|
$mail->view('emails.server-lost-connection', [
|
||||||
'name' => $this->server->name,
|
'name' => $this->server->name,
|
||||||
]);
|
]);
|
||||||
@ -52,13 +52,13 @@ public function toMail(): MailMessage
|
|||||||
|
|
||||||
public function toDiscord(): string
|
public function toDiscord(): string
|
||||||
{
|
{
|
||||||
$message = "Last Hour: Your server '{$this->server->name}' is unreachable. All automations & integrations are turned off! Please check your server! IMPORTANT: We automatically try to revive your server and turn on all automations & integrations.";
|
$message = "Last Hour Cloud: Your server '{$this->server->name}' is unreachable. All automations & integrations are turned off! Please check your server! IMPORTANT: We automatically try to revive your server and turn on all automations & integrations.";
|
||||||
return $message;
|
return $message;
|
||||||
}
|
}
|
||||||
public function toTelegram(): array
|
public function toTelegram(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
"message" => "Last Hour: Your server '{$this->server->name}' is unreachable. All automations & integrations are turned off! Please check your server! IMPORTANT: We automatically try to revive your server and turn on all automations & integrations."
|
"message" => "Last Hour Cloud: Your server '{$this->server->name}' is unreachable. All automations & integrations are turned off! Please check your server! IMPORTANT: We automatically try to revive your server and turn on all automations & integrations."
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -24,14 +24,14 @@ public function via(object $notifiable): array
|
|||||||
public function toMail(): MailMessage
|
public function toMail(): MailMessage
|
||||||
{
|
{
|
||||||
$mail = new MailMessage();
|
$mail = new MailMessage();
|
||||||
$mail->subject("Last Hour: Test Email");
|
$mail->subject("Last Hour Cloud: Test Email");
|
||||||
$mail->view('emails.test');
|
$mail->view('emails.test');
|
||||||
return $mail;
|
return $mail;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function toDiscord(): string
|
public function toDiscord(): string
|
||||||
{
|
{
|
||||||
$message = 'Last Hour: This is a test Discord notification from Last Hour.';
|
$message = 'Last Hour Cloud: This is a test Discord notification from Last Hour Cloud.';
|
||||||
$message .= "\n\n";
|
$message .= "\n\n";
|
||||||
$message .= '[Go to your dashboard](' . base_url() . ')';
|
$message .= '[Go to your dashboard](' . base_url() . ')';
|
||||||
return $message;
|
return $message;
|
||||||
@ -39,7 +39,7 @@ public function toDiscord(): string
|
|||||||
public function toTelegram(): array
|
public function toTelegram(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
"message" => 'Last Hour: This is a test Telegram notification from Last Hour.',
|
"message" => 'Last Hour Cloud: This is a test Telegram notification from Last Hour Cloud.',
|
||||||
"buttons" => [
|
"buttons" => [
|
||||||
[
|
[
|
||||||
"text" => "Go to your dashboard",
|
"text" => "Go to your dashboard",
|
||||||
|
@ -30,7 +30,7 @@ public function toMail(): MailMessage
|
|||||||
$invitation_team = Team::find($invitation->team->id);
|
$invitation_team = Team::find($invitation->team->id);
|
||||||
|
|
||||||
$mail = new MailMessage();
|
$mail = new MailMessage();
|
||||||
$mail->subject('Last Hour: Invitation for ' . $invitation_team->name);
|
$mail->subject('Last Hour Cloud: Invitation for ' . $invitation_team->name);
|
||||||
$mail->view('emails.invitation-link', [
|
$mail->view('emails.invitation-link', [
|
||||||
'team' => $invitation_team->name,
|
'team' => $invitation_team->name,
|
||||||
'email' => $this->user->email,
|
'email' => $this->user->email,
|
||||||
|
@ -50,7 +50,7 @@ public function toMail($notifiable)
|
|||||||
protected function buildMailMessage($url)
|
protected function buildMailMessage($url)
|
||||||
{
|
{
|
||||||
$mail = new MailMessage();
|
$mail = new MailMessage();
|
||||||
$mail->subject('Last Hour: Reset Password');
|
$mail->subject('Last Hour Cloud: Reset Password');
|
||||||
$mail->view('emails.reset-password', ['url' => $url, 'count' => config('auth.passwords.' . config('auth.defaults.passwords') . '.expire')]);
|
$mail->view('emails.reset-password', ['url' => $url, 'count' => config('auth.passwords.' . config('auth.defaults.passwords') . '.expire')]);
|
||||||
return $mail;
|
return $mail;
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@ public function via(): array
|
|||||||
public function toMail(): MailMessage
|
public function toMail(): MailMessage
|
||||||
{
|
{
|
||||||
$mail = new MailMessage();
|
$mail = new MailMessage();
|
||||||
$mail->subject('Last Hour: Test Email');
|
$mail->subject('Last Hour Cloud: Test Email');
|
||||||
$mail->view('emails.test');
|
$mail->view('emails.test');
|
||||||
return $mail;
|
return $mail;
|
||||||
}
|
}
|
||||||
|
@ -140,7 +140,7 @@ function get_route_parameters(): array
|
|||||||
function get_latest_version_of_coolify(): string
|
function get_latest_version_of_coolify(): string
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$response = Http::get('https://cdn.coollabs.io/coolify/versions.json');
|
$response = Http::get('https://cdn.lasthourhosting.org/lasthourcloud/versions.json');
|
||||||
$versions = $response->json();
|
$versions = $response->json();
|
||||||
return data_get($versions, 'coolify.v4.version');
|
return data_get($versions, 'coolify.v4.version');
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
return [
|
return [
|
||||||
'docs' => [
|
'docs' => [
|
||||||
'base_url' => 'https://coolify.io/docs',
|
'base_url' => 'https://coolify.io/docs',
|
||||||
'contact' => 'https://coolify.io/docs/contact',
|
'contact' => 'https://lasthourhosting.org/contact.html',
|
||||||
],
|
],
|
||||||
'ssh' => [
|
'ssh' => [
|
||||||
'connection_timeout' => 10,
|
'connection_timeout' => 10,
|
||||||
@ -19,7 +19,7 @@
|
|||||||
],
|
],
|
||||||
],
|
],
|
||||||
'services' => [
|
'services' => [
|
||||||
'official' => 'https://cdn.coollabs.io/coolify/service-templates.json',
|
'official' => 'https://cdn.lasthourhosting.org/lasthourcloud/templates/service-templates.json',
|
||||||
],
|
],
|
||||||
'limits' => [
|
'limits' => [
|
||||||
'trial_period' => 0,
|
'trial_period' => 0,
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
return [
|
return [
|
||||||
'docs' => 'https://coolify.io/docs/',
|
'docs' => 'https://coolify.io/docs/',
|
||||||
'contact' => 'https://coolify.io/docs/contact',
|
'contact' => 'https://lasthourhosting.org/contact.html',
|
||||||
'feedback_discord_webhook' => env('FEEDBACK_DISCORD_WEBHOOK'),
|
'feedback_discord_webhook' => env('FEEDBACK_DISCORD_WEBHOOK'),
|
||||||
'self_hosted' => env('SELF_HOSTED', true),
|
'self_hosted' => env('SELF_HOSTED', true),
|
||||||
'waitlist' => env('WAITLIST', false),
|
'waitlist' => env('WAITLIST', false),
|
||||||
|
@ -20,7 +20,7 @@ public function up(): void
|
|||||||
$table->string('default_redirect_404')->nullable();
|
$table->string('default_redirect_404')->nullable();
|
||||||
$table->integer('public_port_min')->default(9000);
|
$table->integer('public_port_min')->default(9000);
|
||||||
$table->integer('public_port_max')->default(9100);
|
$table->integer('public_port_max')->default(9100);
|
||||||
$table->boolean('do_not_track')->default(false);
|
$table->boolean('do_not_track')->default(true);
|
||||||
$table->boolean('is_auto_update_enabled')->default(true);
|
$table->boolean('is_auto_update_enabled')->default(true);
|
||||||
$table->boolean('is_registration_enabled')->default(true);
|
$table->boolean('is_registration_enabled')->default(true);
|
||||||
$table->schemalessAttributes('smtp');
|
$table->schemalessAttributes('smtp');
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
version: '3.8'
|
version: "3.8"
|
||||||
services:
|
services:
|
||||||
coolify-testing-host:
|
coolify-testing-host:
|
||||||
init: true
|
init: true
|
||||||
@ -15,7 +15,7 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
working_dir: /var/www/html
|
working_dir: /var/www/html
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
- 'host.docker.internal:host-gateway'
|
- "host.docker.internal:host-gateway"
|
||||||
volumes:
|
volumes:
|
||||||
- type: bind
|
- type: bind
|
||||||
source: .env
|
source: .env
|
||||||
@ -80,7 +80,7 @@ services:
|
|||||||
"CMD-SHELL",
|
"CMD-SHELL",
|
||||||
"pg_isready -U ${DB_USERNAME:-coolify}",
|
"pg_isready -U ${DB_USERNAME:-coolify}",
|
||||||
"-d",
|
"-d",
|
||||||
"${DB_DATABASE:-coolify}"
|
"${DB_DATABASE:-coolify}",
|
||||||
]
|
]
|
||||||
interval: 5s
|
interval: 5s
|
||||||
retries: 10
|
retries: 10
|
||||||
@ -103,7 +103,7 @@ services:
|
|||||||
retries: 10
|
retries: 10
|
||||||
timeout: 2s
|
timeout: 2s
|
||||||
soketi:
|
soketi:
|
||||||
image: 'quay.io/soketi/soketi:1.6-16-alpine'
|
image: "quay.io/soketi/soketi:1.6-16-alpine"
|
||||||
pull_policy: always
|
pull_policy: always
|
||||||
container_name: coolify-realtime
|
container_name: coolify-realtime
|
||||||
restart: always
|
restart: always
|
||||||
|
49
notes.md
49
notes.md
@ -1,49 +0,0 @@
|
|||||||
sudo docker compose --env-file /data/coolify/source/.env -f /data/coolify/source/docker-compose.yml -f /data/coolify/source/docker-compose.prod.yml up -d --pull always --remove-orphans --force-recreate
|
|
||||||
|
|
||||||
sudo docker compose --env-file /data/coolify/source/.env -f /data/coolify/source/docker-compose.yml -f /data/coolify/source/docker-compose.prod.yml down
|
|
||||||
|
|
||||||
docker run --pull always -v /data/coolify/source:/data/coolify/source -v /var/run/docker.sock:/var/run/docker.sock --rm ghcr.io/coollabsio/coolify-helper bash -c "LATEST_IMAGE=${1:-} docker compose --env-file /data/coolify/source/.env -f /data/coolify/source/docker-compose.yml -f /data/coolify/source/docker-compose.prod.yml up -d --pull always --remove-orphans --force-recreate"
|
|
||||||
|
|
||||||
# Check the current value
|
|
||||||
|
|
||||||
grep PermitRootLogin /etc/ssh/sshd_config
|
|
||||||
|
|
||||||
# If the value is not `yes` or `without-password` or `prohibit-password`, change it and make sure it is not commented out.
|
|
||||||
|
|
||||||
# If it is commented out, remove the `#` character at the beginning of the line.
|
|
||||||
|
|
||||||
sudo vi /etc/ssh/sshd_config
|
|
||||||
|
|
||||||
# You can exit the editor by pressing `Esc` and then `:wq` and then `Enter` keys - thank me later.
|
|
||||||
|
|
||||||
# Restart the SSH service
|
|
||||||
|
|
||||||
# Ubuntu/Debian/CentOS/RHEL/Arch Linux/SLES/openSUSE
|
|
||||||
|
|
||||||
sudo systemctl restart sshd
|
|
||||||
|
|
||||||
# Alpine Linux
|
|
||||||
|
|
||||||
sudo rc-service sshd restart
|
|
||||||
|
|
||||||
Clean up:
|
|
||||||
Remove local key ~/.ssh/authorized_keys
|
|
||||||
sudo rm -rf /data/coolify &&
|
|
||||||
sudo docker stop $(sudo docker ps -q) &&
|
|
||||||
sudo docker rm $(sudo docker ps -a -q) &&
|
|
||||||
sudo docker rmi $(sudo docker images -q) &&
|
|
||||||
sudo docker volume rm $(sudo docker volume ls -q)
|
|
||||||
|
|
||||||
Install sequence:
|
|
||||||
sudo sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin prohibit-password/' /etc/ssh/sshd_config &&
|
|
||||||
sudo systemctl restart sshd &&
|
|
||||||
git clone https://githaven.org/Shiloh/lasthourcloud.git
|
|
||||||
sudo bash /home/lasthour/lasthourcloud/scripts/local_install.sh
|
|
||||||
sudo bash /home/lasthour/lasthourcloud/scripts/upgrade.sh
|
|
||||||
php artisan optimize:clear
|
|
||||||
composer install (or composer update
|
|
||||||
php artisan cache:clear
|
|
||||||
php artisan route:cache
|
|
||||||
php artisan view:clear
|
|
||||||
npm cache clean --force
|
|
||||||
npm i
|
|
Binary file not shown.
Before Width: | Height: | Size: 641 KiB |
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 34 KiB |
@ -2,7 +2,7 @@
|
|||||||
<div class="flex items-center justify-center h-screen">
|
<div class="flex items-center justify-center h-screen">
|
||||||
<div>
|
<div>
|
||||||
<div class="flex flex-col items-center pb-8">
|
<div class="flex flex-col items-center pb-8">
|
||||||
<div class="text-5xl font-bold tracking-tight text-center text-white">Last Hour</div>
|
<div class="text-5xl font-bold tracking-tight text-center text-white">Last Hour Cloud</div>
|
||||||
<x-version />
|
<x-version />
|
||||||
</div>
|
</div>
|
||||||
<div class="w-96">
|
<div class="w-96">
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<div class="flex flex-col items-center pb-8">
|
<div class="flex flex-col items-center pb-8">
|
||||||
<a href="{{ route('dashboard') }}">
|
<a href="{{ route('dashboard') }}">
|
||||||
<div class="text-5xl font-bold tracking-tight text-center text-white">Last Hour</div>
|
<div class="text-5xl font-bold tracking-tight text-center text-white">Last Hour Cloud</div>
|
||||||
</a>
|
</a>
|
||||||
<x-version />
|
<x-version />
|
||||||
</div>
|
</div>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<div class="min-h-screen hero">
|
<div class="min-h-screen hero">
|
||||||
<div class="w-96 min-w-fit">
|
<div class="w-96 min-w-fit">
|
||||||
<div class="flex flex-col items-center pb-8">
|
<div class="flex flex-col items-center pb-8">
|
||||||
<div class="text-5xl font-extrabold tracking-tight text-center text-white">Last Hour</div>
|
<div class="text-5xl font-extrabold tracking-tight text-center text-white">Last Hour Cloud</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<h1>{{ __('auth.login') }}</h1>
|
<h1>{{ __('auth.login') }}</h1>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<div class="flex items-center justify-center min-h-screen ">
|
<div class="flex items-center justify-center min-h-screen ">
|
||||||
<div class="w-1/2">
|
<div class="w-1/2">
|
||||||
<div class="flex flex-col items-center pb-8">
|
<div class="flex flex-col items-center pb-8">
|
||||||
<div class="text-5xl font-bold tracking-tight text-center text-white">Last Hour</div>
|
<div class="text-5xl font-bold tracking-tight text-center text-white">Last Hour Cloud</div>
|
||||||
<x-version />
|
<x-version />
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<div class="flex flex-col items-center ">
|
<div class="flex flex-col items-center ">
|
||||||
<a href="{{ route('dashboard') }}">
|
<a href="{{ route('dashboard') }}">
|
||||||
<div class="text-5xl font-bold tracking-tight text-center text-white">Last Hour</div>
|
<div class="text-5xl font-bold tracking-tight text-center text-white">Last Hour Cloud</div>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-center justify-center pb-4 text-center">
|
<div class="flex items-center justify-center pb-4 text-center">
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<div class="flex items-center justify-center h-screen">
|
<div class="flex items-center justify-center h-screen">
|
||||||
<div>
|
<div>
|
||||||
<div class="flex flex-col items-center pb-8">
|
<div class="flex flex-col items-center pb-8">
|
||||||
<div class="text-5xl font-bold tracking-tight text-center text-white">Last Hour</div>
|
<div class="text-5xl font-bold tracking-tight text-center text-white">Last Hour Cloud</div>
|
||||||
<x-version />
|
<x-version />
|
||||||
</div>
|
</div>
|
||||||
<div class="w-96" x-data="{ showRecovery: false }">
|
<div class="w-96" x-data="{ showRecovery: false }">
|
||||||
|
@ -3,4 +3,4 @@
|
|||||||
Thank you,<br>
|
Thank you,<br>
|
||||||
{{ config('app.name') ?? 'Coolify' }}
|
{{ config('app.name') ?? 'Coolify' }}
|
||||||
|
|
||||||
{{ Illuminate\Mail\Markdown::parse('[Contact Support](https://coolify.io/docs/contact)') }}
|
{{ Illuminate\Mail\Markdown::parse('[Contact Support](https://lasthourhosting.org/contact.html)') }}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
@auth
|
@auth
|
||||||
<nav class="fixed h-full overflow-hidden overflow-y-auto pt-14 scrollbar">
|
<nav class="fixed h-full overflow-hidden overflow-y-auto pt-14 scrollbar">
|
||||||
<a href="/" class="fixed top-0 z-50 mx-3 mt-3 bg-transparent cursor-pointer"><img
|
<a href="/" class="fixed top-0 z-50 mx-3 mt-3 bg-transparent cursor-pointer"><img
|
||||||
class="transition rounded w-11 h-11" src="{{ asset('coolify-transparent.png') }}"></a>
|
class="transition rounded w-11 h-11" src="{{ asset('lasthour-transparent.png') }}"></a>
|
||||||
<ul class="flex flex-col h-full gap-4 menu flex-nowrap">
|
<ul class="flex flex-col h-full gap-4 menu flex-nowrap">
|
||||||
<li title="Dashboard">
|
<li title="Dashboard">
|
||||||
<a class="hover:bg-transparent" @if (!request()->is('/')) href="/" @endif>
|
<a class="hover:bg-transparent" @if (!request()->is('/')) href="/" @endif>
|
||||||
@ -12,24 +12,18 @@ class="transition rounded w-11 h-11" src="{{ asset('coolify-transparent.png') }}
|
|||||||
</svg>
|
</svg>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li title="Help us!">
|
<li title="Get Involved">
|
||||||
<a class="hover:bg-transparent" href="https://coolify.io/sponsorships" target="_blank">
|
<a class="hover:bg-transparent" href="https://shilohcode.com/get-involved" target="_blank">
|
||||||
<svg class="icon hover:text-pink-500" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
<svg xmlns="http://www.w3.org/2000/svg" class="icon hover:text-blue-500" viewBox="0 0 16 16">
|
||||||
<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"
|
<path d="M13.5 1a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3M11 2.5a2.5 2.5 0 1 1 .603 1.628l-6.718 3.12a2.5 2.5 0 0 1 0 1.504l6.718 3.12a2.5 2.5 0 1 1-.488.876l-6.718-3.12a2.5 2.5 0 1 1 0-3.256l6.718-3.12A2.5 2.5 0 0 1 11 2.5m-8.5 4a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3m11 5.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3"/>
|
||||||
stroke-width="2">
|
|
||||||
<path d="M19.5 12.572L12 20l-7.5-7.428A5 5 0 1 1 12 6.006a5 5 0 1 1 7.5 6.572" />
|
|
||||||
<path
|
|
||||||
d="M12 6L8.707 9.293a1 1 0 0 0 0 1.414l.543.543c.69.69 1.81.69 2.5 0l1-1a3.182 3.182 0 0 1 4.5 0l2.25 2.25m-7 3l2 2M15 13l2 2" />
|
|
||||||
</g>
|
|
||||||
</svg>
|
</svg>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li title="Send us feedback or get help!" class="fixed top-0 right-0 p-2 px-4 pt-4 mt-auto text-xs">
|
<li title="Get help!" class="fixed top-0 right-0 p-2 px-4 pt-4 mt-auto text-xs">
|
||||||
<div class="justify-center" wire:click="help" onclick="help.showModal()">
|
<div class="justify-center" wire:click="help" onclick="help.showModal()">
|
||||||
<svg class="icon" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg">
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chat-dots-fill" viewBox="0 0 16 16">
|
||||||
<path fill="currentColor"
|
<path d="M16 8c0 3.866-3.582 7-8 7a9 9 0 0 1-2.347-.306c-.584.296-1.925.864-4.181 1.234-.2.032-.352-.176-.273-.362.354-.836.674-1.95.77-2.966C.744 11.37 0 9.76 0 8c0-3.866 3.582-7 8-7s8 3.134 8 7M5 8a1 1 0 1 0-2 0 1 1 0 0 0 2 0m4 0a1 1 0 1 0-2 0 1 1 0 0 0 2 0m3 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2"/>
|
||||||
d="M140 180a12 12 0 1 1-12-12a12 12 0 0 1 12 12M128 72c-22.06 0-40 16.15-40 36v4a8 8 0 0 0 16 0v-4c0-11 10.77-20 24-20s24 9 24 20s-10.77 20-24 20a8 8 0 0 0-8 8v8a8 8 0 0 0 16 0v-.72c18.24-3.35 32-17.9 32-35.28c0-19.85-17.94-36-40-36m104 56A104 104 0 1 1 128 24a104.11 104.11 0 0 1 104 104m-16 0a88 88 0 1 0-88 88a88.1 88.1 0 0 0 88-88" />
|
</svg>
|
||||||
</svg>
|
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li class="pb-6" title="Logout">
|
<li class="pb-6" title="Logout">
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
@auth
|
@auth
|
||||||
<nav class="fixed h-full pt-28 scrollbar">
|
<nav class="fixed h-full pt-28 scrollbar">
|
||||||
<a href="/" class="fixed top-0 z-50 mx-3 mt-3 bg-transparent cursor-pointer"><img
|
<a href="/" class="fixed top-0 z-50 mx-3 mt-3 bg-transparent cursor-pointer"><img
|
||||||
class="transition rounded w-11 h-11" src="{{ asset('coolify-transparent.png') }}"></a>
|
class="transition rounded w-11 h-11" src="{{ asset('lasthour-transparent.png') }}"></a>
|
||||||
<ul class="flex flex-col h-full gap-4 menu flex-nowrap">
|
<ul class="flex flex-col h-full gap-4 menu flex-nowrap">
|
||||||
<li title="Dashboard">
|
<li title="Dashboard">
|
||||||
<a class="hover:bg-transparent" href="/">
|
<a class="hover:bg-transparent" href="/">
|
||||||
@ -182,25 +182,18 @@ class="{{ request()->is('settings*') ? 'text-warning icon' : 'icon' }}"
|
|||||||
<livewire:upgrade />
|
<livewire:upgrade />
|
||||||
@endpersist
|
@endpersist
|
||||||
@endif
|
@endif
|
||||||
<li title="Help us!">
|
<li title="Get Involved">
|
||||||
<a class="hover:bg-transparent" href="https://coolify.io/sponsorships" target="_blank">
|
<a class="hover:bg-transparent" href="https://shilohcode.com/get-involved" target="_blank">
|
||||||
<svg class="icon hover:text-pink-500" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
<svg xmlns="http://www.w3.org/2000/svg" class="icon hover:text-blue-500" viewBox="0 0 16 16">
|
||||||
<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"
|
<path d="M13.5 1a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3M11 2.5a2.5 2.5 0 1 1 .603 1.628l-6.718 3.12a2.5 2.5 0 0 1 0 1.504l6.718 3.12a2.5 2.5 0 1 1-.488.876l-6.718-3.12a2.5 2.5 0 1 1 0-3.256l6.718-3.12A2.5 2.5 0 0 1 11 2.5m-8.5 4a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3m11 5.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3"/>
|
||||||
stroke-width="2">
|
|
||||||
<path d="M19.5 12.572L12 20l-7.5-7.428A5 5 0 1 1 12 6.006a5 5 0 1 1 7.5 6.572" />
|
|
||||||
<path
|
|
||||||
d="M12 6L8.707 9.293a1 1 0 0 0 0 1.414l.543.543c.69.69 1.81.69 2.5 0l1-1a3.182 3.182 0 0 1 4.5 0l2.25 2.25m-7 3l2 2M15 13l2 2" />
|
|
||||||
</g>
|
|
||||||
</svg>
|
</svg>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li title="Get help!" class="fixed top-0 right-0 p-2 px-4 pt-4 mt-auto text-xs">
|
||||||
<li title="Send us feedback or get help!" class="hover:bg-transparent">
|
|
||||||
<div class="justify-center" wire:click="help" onclick="help.showModal()">
|
<div class="justify-center" wire:click="help" onclick="help.showModal()">
|
||||||
<svg class="icon" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg">
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chat-dots-fill" viewBox="0 0 16 16">
|
||||||
<path fill="currentColor"
|
<path d="M16 8c0 3.866-3.582 7-8 7a9 9 0 0 1-2.347-.306c-.584.296-1.925.864-4.181 1.234-.2.032-.352-.176-.273-.362.354-.836.674-1.95.77-2.966C.744 11.37 0 9.76 0 8c0-3.866 3.582-7 8-7s8 3.134 8 7M5 8a1 1 0 1 0-2 0 1 1 0 0 0 2 0m4 0a1 1 0 1 0-2 0 1 1 0 0 0 2 0m3 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2"/>
|
||||||
d="M140 180a12 12 0 1 1-12-12a12 12 0 0 1 12 12M128 72c-22.06 0-40 16.15-40 36v4a8 8 0 0 0 16 0v-4c0-11 10.77-20 24-20s24 9 24 20s-10.77 20-24 20a8 8 0 0 0-8 8v8a8 8 0 0 0 16 0v-.72c18.24-3.35 32-17.9 32-35.28c0-19.85-17.94-36-40-36m104 56A104 104 0 1 1 128 24a104.11 104.11 0 0 1 104 104m-16 0a88 88 0 1 0-88 88a88.1 88.1 0 0 0 88-88" />
|
</svg>
|
||||||
</svg>
|
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<form action="/logout" method="POST" class="hover:bg-transparent">
|
<form action="/logout" method="POST" class="hover:bg-transparent">
|
||||||
|
@ -325,7 +325,7 @@ class="grid max-w-sm grid-cols-1 -mt-16 divide-y divide-coolgray-500 isolate gap
|
|||||||
</div>
|
</div>
|
||||||
<div class="mt-1 text-base leading-7 text-gray-300">
|
<div class="mt-1 text-base leading-7 text-gray-300">
|
||||||
You own your own data. All configurations saved on your own servers, so if
|
You own your own data. All configurations saved on your own servers, so if
|
||||||
you decide to stop using Coolify, you can still continue to manage your
|
you decide to stop using Last Hour Cloud, you can still continue to manage your
|
||||||
deployed resources.
|
deployed resources.
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -347,7 +347,7 @@ class="grid max-w-sm grid-cols-1 -mt-16 divide-y divide-coolgray-500 isolate gap
|
|||||||
<div class="text-2xl font-semibold text-white">Monitoring</div>
|
<div class="text-2xl font-semibold text-white">Monitoring</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="mt-1 text-base leading-7 text-gray-300">
|
<div class="mt-1 text-base leading-7 text-gray-300">
|
||||||
Coolify will automatically monitor your configured servers and deployed
|
Last Hour Cloud will automatically monitor your configured servers and deployed
|
||||||
resources. Notifies you if something goes wrong on your favourite
|
resources. Notifies you if something goes wrong on your favourite
|
||||||
channels, like Discord, Telegram, via Email and more...
|
channels, like Discord, Telegram, via Email and more...
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<div class="pb-5">
|
<div class="pb-5">
|
||||||
<h1>Settings</h1>
|
<h1>Settings</h1>
|
||||||
<div class="subtitle">Instance wide settings for Coolify.</div>
|
<div class="subtitle">Instance wide settings for Last Hour Cloud.</div>
|
||||||
<nav class="navbar-main">
|
<nav class="navbar-main">
|
||||||
<a class="{{ request()->routeIs('settings.index') ? 'text-white' : '' }}"
|
<a class="{{ request()->routeIs('settings.index') ? 'text-white' : '' }}"
|
||||||
href="{{ route('settings.index') }}">
|
href="{{ route('settings.index') }}">
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
<a {{ $attributes->merge(['class' => 'text-xs cursor-pointer opacity-60 hover:opacity-100 hover:text-white z-50']) }}
|
<a {{ $attributes->merge(['class' => 'text-xs cursor-pointer opacity-60 hover:opacity-100 hover:text-white z-50']) }}
|
||||||
href="https://github.com/coollabsio/coolify/releases/tag/v{{ config('version') }}">v{{ config('version') }}</a>
|
href="https://githaven.org/Shiloh/lasthourcloud/releases/tag/v{{ config('version') }}">v{{ config('version') }}</a>
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
A resource ({{ $containerName }}) has been restarted automatically on {{ $serverName }}, because it was stopped unexpectedly.
|
A resource ({{ $containerName }}) has been restarted automatically on {{ $serverName }}, because it was stopped unexpectedly.
|
||||||
|
|
||||||
@if ($containerName === 'coolify-proxy')
|
@if ($containerName === 'coolify-proxy')
|
||||||
Coolify Proxy should run on your server as you have FQDNs set up in one of your resources.
|
Last Hour Cloud Proxy should run on your server as you have FQDNs set up in one of your resources.
|
||||||
|
|
||||||
If you don't want to use Coolify Proxy, please remove FQDN from your resources or set Proxy type to Custom(None).
|
If you don't want to use Last Hour Cloud Proxy, please remove FQDN from your resources or set Proxy type to Custom(None).
|
||||||
@endif
|
@endif
|
||||||
</x-emails.layout>
|
</x-emails.layout>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<x-emails.layout>
|
<x-emails.layout>
|
||||||
Your server ({{ $name }}) has high disk usage ({{ $disk_usage }}% used). Threshold is {{ $threshold }}%.
|
Your server ({{ $name }}) has high disk usage ({{ $disk_usage }}% used). Threshold is {{ $threshold }}%.
|
||||||
|
|
||||||
Please cleanup your disk to prevent data-loss. Here are some [tips](https://coolify.io/docs/automated-cleanup).
|
Please cleanup your disk to prevent data-loss. Here are some [tips](https://coolify.io/docs/automated-cleanup) from the upstream project.
|
||||||
|
|
||||||
(You can change the threshold in the Server Settings menu.)
|
(You can change the threshold in the Server Settings menu.)
|
||||||
</x-emails.layout>
|
</x-emails.layout>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<x-emails.layout>
|
<x-emails.layout>
|
||||||
Coolify cannot connect to your server ({{ $name }}). Please check your server and make sure it is running.
|
Last Hour Cloud cannot connect to your server ({{ $name }}). Please check your server and make sure it is running.
|
||||||
|
|
||||||
All automations & integrations are turned off!
|
All automations & integrations are turned off!
|
||||||
|
|
||||||
|
@ -7,11 +7,11 @@
|
|||||||
<link rel="preconnect" href="https://api.fonts.coollabs.io" crossorigin>
|
<link rel="preconnect" href="https://api.fonts.coollabs.io" crossorigin>
|
||||||
<link href="https://api.fonts.coollabs.io/css2?family=Inter&display=swap" rel="stylesheet">
|
<link href="https://api.fonts.coollabs.io/css2?family=Inter&display=swap" rel="stylesheet">
|
||||||
<meta name="robots" content="noindex">
|
<meta name="robots" content="noindex">
|
||||||
<title>Coolify</title>
|
<title>Last Hour Cloud</title>
|
||||||
@env('local')
|
@env('local')
|
||||||
<link rel="icon" href="{{ asset('favicon-dev.png') }}" type="image/x-icon" />
|
<link rel="icon" href="{{ asset('favicon-dev.png') }}" type="image/x-icon" />
|
||||||
@else
|
@else
|
||||||
<link rel="icon" href="{{ asset('coolify-transparent.png') }}" type="image/x-icon" />
|
<link rel="icon" href="{{ asset('lasthour-transparent.png') }}" type="image/x-icon" />
|
||||||
@endenv
|
@endenv
|
||||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||||
@vite(['resources/js/app.js', 'resources/css/app.css'])
|
@vite(['resources/js/app.js', 'resources/css/app.css'])
|
||||||
@ -89,7 +89,7 @@ function revive() {
|
|||||||
fetch('/api/health')
|
fetch('/api/health')
|
||||||
.then(response => {
|
.then(response => {
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
window.toast('Coolify is back online. Reloading...', {
|
window.toast('Last Hour Cloud is back online. Reloading...', {
|
||||||
type: 'success',
|
type: 'success',
|
||||||
})
|
})
|
||||||
if (checkHealthInterval) clearInterval(checkHealthInterval);
|
if (checkHealthInterval) clearInterval(checkHealthInterval);
|
||||||
@ -112,7 +112,7 @@ function upgrade() {
|
|||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
console.log('It\'s alive. Waiting for server to be dead...');
|
console.log('It\'s alive. Waiting for server to be dead...');
|
||||||
} else {
|
} else {
|
||||||
window.toast('Update done, restarting Coolify!', {
|
window.toast('Update done, restarting Last Hour Cloud!', {
|
||||||
type: 'success',
|
type: 'success',
|
||||||
})
|
})
|
||||||
console.log('It\'s dead. Reviving... Standby... Bzz... Bzz...')
|
console.log('It\'s dead. Reviving... Standby... Bzz... Bzz...')
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
and <a href="https://lasthourhosting.org/cloud.html" class="text-white hover:underline">much much more</a>.
|
and <a href="https://lasthourhosting.org/cloud.html" class="text-white hover:underline">much much more</a>.
|
||||||
<br><br>
|
<br><br>
|
||||||
<span class="text-xl">
|
<span class="text-xl">
|
||||||
<x-highlighted text="Self-hosting for the last hour." /></span>
|
<x-highlighted text="Self-hosting for the Last Hour Cloud." /></span>
|
||||||
</x-slot:question>
|
</x-slot:question>
|
||||||
<x-slot:explanation>
|
<x-slot:explanation>
|
||||||
<p><x-highlighted text="Task automation:" /> You do not to manage your servers too much. This does
|
<p><x-highlighted text="Task automation:" /> You do not to manage your servers too much. This does
|
||||||
|
@ -92,7 +92,7 @@
|
|||||||
&
|
&
|
||||||
@endif
|
@endif
|
||||||
@if (!$server->settings->is_usable)
|
@if (!$server->settings->is_usable)
|
||||||
<span>Not usable by Coolify</span>
|
<span>Not usable by Last Hour Cloud</span>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<div class="w-96 min-w-fit">
|
<div class="w-96 min-w-fit">
|
||||||
<div class="flex flex-col items-center">
|
<div class="flex flex-col items-center">
|
||||||
<a href="{{ route('dashboard') }}">
|
<a href="{{ route('dashboard') }}">
|
||||||
<div class="text-5xl font-bold tracking-tight text-center text-white">Last Hour</div>
|
<div class="text-5xl font-bold tracking-tight text-center text-white">Last Hour Cloud</div>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-center justify-center pb-4 text-center">
|
<div class="flex items-center justify-center pb-4 text-center">
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<div class="flex flex-col w-11/12 max-w-5xl gap-2 modal-box">
|
<div class="flex flex-col w-11/12 max-w-5xl gap-2 modal-box">
|
||||||
<h3>How can we help?</h3>
|
<h3>How can we help?</h3>
|
||||||
<div>Your feedback helps us to improve Coolify. Thank you! 💜</div>
|
<div>Give us feedback or ask a question and our team will get back to you within 24 hours.</div>
|
||||||
<form wire:submit="submit" class="flex flex-col gap-4 pt-4">
|
<form wire:submit="submit" class="flex flex-col gap-4 pt-4">
|
||||||
<x-forms.input id="subject" label="Subject" placeholder="Summary of your problem."></x-forms.input>
|
<x-forms.input id="subject" label="Subject" placeholder="Summary of your problem."></x-forms.input>
|
||||||
<x-forms.textarea rows="10" id="description" label="Description"
|
<x-forms.textarea rows="10" id="description" label="Description"
|
||||||
|
@ -46,13 +46,13 @@
|
|||||||
@if ($application->build_pack === 'dockercompose')
|
@if ($application->build_pack === 'dockercompose')
|
||||||
<x-forms.checkbox instantSave id="application.settings.is_raw_compose_deployment_enabled"
|
<x-forms.checkbox instantSave id="application.settings.is_raw_compose_deployment_enabled"
|
||||||
label="Raw Compose Deployment"
|
label="Raw Compose Deployment"
|
||||||
helper="WARNING: Advanced use cases only. Your docker compose file will be deployed as-is. Nothing is modified by Coolify. You need to configure the proxy parts. More info in the <a href='https://coolify.io/docs/docker/compose#raw-docker-compose-deployment'>documentation.</a>" />
|
helper="WARNING: Advanced use cases only. Your docker compose file will be deployed as-is. Nothing is modified by Last Hour Cloud. You need to configure the proxy parts. More info in the upstream <a href='https://coolify.io/docs/docker/compose#raw-docker-compose-deployment'>documentation.</a>" />
|
||||||
@if (count($parsedServices) > 0 && !$application->settings->is_raw_compose_deployment_enabled)
|
@if (count($parsedServices) > 0 && !$application->settings->is_raw_compose_deployment_enabled)
|
||||||
@foreach (data_get($parsedServices, 'services') as $serviceName => $service)
|
@foreach (data_get($parsedServices, 'services') as $serviceName => $service)
|
||||||
@if (!isDatabaseImage(data_get($service, 'image')))
|
@if (!isDatabaseImage(data_get($service, 'image')))
|
||||||
<div class="flex items-end gap-2">
|
<div class="flex items-end gap-2">
|
||||||
<x-forms.input
|
<x-forms.input
|
||||||
helper="You can specify one domain with path or more with comma. You can specify a port to bind the domain to.<br><br><span class='text-helper'>Example</span><br>- http://app.coolify.io, https://cloud.coolify.io/dashboard<br>- http://app.coolify.io/api/v3<br>- http://app.coolify.io:3000 -> app.coolify.io will point to port 3000 inside the container. "
|
helper="You can specify one domain with path or more with comma. You can specify a port to bind the domain to.<br><br><span class='text-helper'>Example</span><br>- http://app.lasthourhosting.org, https://cloud.lasthourhosting.org/dashboard<br>- http://app.lasthourhosting.org/api/v3<br>- http://app.lasthourhosting.org:3000 -> app.lasthourhosting.org will point to port 3000 inside the container. "
|
||||||
label="Domains for {{ str($serviceName)->headline() }}"
|
label="Domains for {{ str($serviceName)->headline() }}"
|
||||||
id="parsedServiceDomains.{{ $serviceName }}.domain"></x-forms.input>
|
id="parsedServiceDomains.{{ $serviceName }}.domain"></x-forms.input>
|
||||||
@if (!data_get($parsedServiceDomains, "$serviceName.domain"))
|
@if (!data_get($parsedServiceDomains, "$serviceName.domain"))
|
||||||
@ -68,8 +68,8 @@
|
|||||||
@endif
|
@endif
|
||||||
@if ($application->build_pack !== 'dockercompose')
|
@if ($application->build_pack !== 'dockercompose')
|
||||||
<div class="flex items-end gap-2">
|
<div class="flex items-end gap-2">
|
||||||
<x-forms.input placeholder="https://coolify.io" id="application.fqdn" label="Domains"
|
<x-forms.input placeholder="https://lasthourhosting.org" id="application.fqdn" label="Domains"
|
||||||
helper="You can specify one domain with path or more with comma. You can specify a port to bind the domain to.<br><br><span class='text-helper'>Example</span><br>- http://app.coolify.io, https://cloud.coolify.io/dashboard<br>- http://app.coolify.io/api/v3<br>- http://app.coolify.io:3000 -> app.coolify.io will point to port 3000 inside the container. " />
|
helper="You can specify one domain with path or more with comma. You can specify a port to bind the domain to.<br><br><span class='text-helper'>Example</span><br>- http://app.lasthourhosting.org, https://cloud.lasthourhosting.org/dashboard<br>- http://app.lasthourhosting.org/api/v3<br>- http://app.lasthourhosting.org:3000 -> app.lasthourhosting.org will point to port 3000 inside the container. " />
|
||||||
<x-forms.button wire:click="getWildcardDomain">Generate Domain
|
<x-forms.button wire:click="getWildcardDomain">Generate Domain
|
||||||
</x-forms.button>
|
</x-forms.button>
|
||||||
</div>
|
</div>
|
||||||
@ -79,13 +79,13 @@
|
|||||||
<h3>Docker Registry</h3>
|
<h3>Docker Registry</h3>
|
||||||
@if ($application->build_pack !== 'dockerimage' && !$application->destination->server->isSwarm())
|
@if ($application->build_pack !== 'dockerimage' && !$application->destination->server->isSwarm())
|
||||||
<x-helper
|
<x-helper
|
||||||
helper='Push the built image to a docker registry. More info <a class="underline"
|
helper='Push the built image to a docker registry. More info in upstream docs<a class="underline"
|
||||||
href="https://coolify.io/docs/docker/registry" target="_blank">here</a>' />
|
href="https://coolify.io/docs/docker/registry" target="_blank">here</a>' />
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
@if ($application->destination->server->isSwarm())
|
@if ($application->destination->server->isSwarm())
|
||||||
@if ($application->build_pack !== 'dockerimage')
|
@if ($application->build_pack !== 'dockerimage')
|
||||||
<div>Docker Swarm requires the image to be available in a registry. More info <a
|
<div>Docker Swarm requires the image to be available in a registry. More info in upstream docs<a
|
||||||
class="underline" href="https://coolify.io/docs/docker/registry"
|
class="underline" href="https://coolify.io/docs/docker/registry"
|
||||||
target="_blank">here</a>.</div>
|
target="_blank">here</a>.</div>
|
||||||
@endif
|
@endif
|
||||||
@ -124,7 +124,7 @@ class="underline" href="https://coolify.io/docs/docker/registry"
|
|||||||
@if ($application->build_pack !== 'dockercompose')
|
@if ($application->build_pack !== 'dockercompose')
|
||||||
<div class="w-96">
|
<div class="w-96">
|
||||||
<x-forms.checkbox
|
<x-forms.checkbox
|
||||||
helper="Use a build server to build your application. You can configure your build server in the Server settings. This is experimental. For more info, check the <a href='https://coolify.io/docs/server/build-server' class='underline' target='_blank'>documentation</a>."
|
helper="Use a build server to build your application. You can configure your build server in the Server settings. This is experimental. For more info, check the upstream <a href='https://coolify.io/docs/server/build-server' class='underline' target='_blank'>documentation</a>."
|
||||||
instantSave id="application.settings.is_build_server_enabled"
|
instantSave id="application.settings.is_build_server_enabled"
|
||||||
label="Use a Build Server? (experimental)" />
|
label="Use a Build Server? (experimental)" />
|
||||||
</div>
|
</div>
|
||||||
@ -140,7 +140,7 @@ class="underline" href="https://coolify.io/docs/docker/registry"
|
|||||||
id="application.start_command" label="Start Command" />
|
id="application.start_command" label="Start Command" />
|
||||||
</div>
|
</div>
|
||||||
<div>Nixpacks will detect the required configuration automatically.
|
<div>Nixpacks will detect the required configuration automatically.
|
||||||
<a class="underline" href="https://coolify.io/docs/frameworks/">Framework Specific Docs</a>
|
<a class="underline" href="https://coolify.io/docs/frameworks/">Framework Specific Upstream Docs</a>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
@endif
|
@endif
|
||||||
@ -198,7 +198,7 @@ class="underline" href="https://coolify.io/docs/docker/registry"
|
|||||||
know what are
|
know what are
|
||||||
you doing.</div>
|
you doing.</div>
|
||||||
<x-forms.input
|
<x-forms.input
|
||||||
helper="You can add custom docker run options that will be used when your container is started.<br>Note: Not all options are supported, as they could mess up Coolify's automation and could cause bad experience for users.<br><br>Check the <a class='text-white underline' href='https://coolify.io/docs/custom-docker-options'>docs.</a>"
|
helper="You can add custom docker run options that will be used when your container is started.<br>Note: Not all options are supported, as they could mess up Last Hour Cloud's automation and could cause bad experience for users.<br><br>Check the upstream <a class='text-white underline' href='https://coolify.io/docs/custom-docker-options'>docs.</a>"
|
||||||
placeholder="--cap-add SYS_ADMIN --device=/dev/fuse --security-opt apparmor:unconfined --ulimit nofile=1024:1024 --tmpfs /run:rw,noexec,nosuid,size=65536k"
|
placeholder="--cap-add SYS_ADMIN --device=/dev/fuse --security-opt apparmor:unconfined --ulimit nofile=1024:1024 --tmpfs /run:rw,noexec,nosuid,size=65536k"
|
||||||
id="application.custom_docker_run_options" label="Custom Docker Options" />
|
id="application.custom_docker_run_options" label="Custom Docker Options" />
|
||||||
@endif
|
@endif
|
||||||
@ -237,7 +237,7 @@ class="underline" href="https://coolify.io/docs/docker/registry"
|
|||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
<x-forms.textarea label="Container Labels" rows="15" id="customLabels"></x-forms.textarea>
|
<x-forms.textarea label="Container Labels" rows="15" id="customLabels"></x-forms.textarea>
|
||||||
<x-forms.button wire:click="resetDefaultLabels">Reset to Coolify Generated Labels</x-forms.button>
|
<x-forms.button wire:click="resetDefaultLabels">Reset to Last Hour Cloud Generated Labels</x-forms.button>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
@ -26,7 +26,7 @@ class="font-normal text-white normal-case border-none rounded btn btn-primary bt
|
|||||||
</div>
|
</div>
|
||||||
<div class="flex items-center gap-2 pb-4">You can use these variables anywhere with <span
|
<div class="flex items-center gap-2 pb-4">You can use these variables anywhere with <span
|
||||||
class="text-warning">@{{ project.VARIABLENAME }}</span><x-helper
|
class="text-warning">@{{ project.VARIABLENAME }}</span><x-helper
|
||||||
helper="More info <a class='text-white underline' href='https://coolify.io/docs/environment-variables#shared-variables' target='_blank'>here</a>."></x-helper>
|
helper="More info in upstream docs <a class='text-white underline' href='https://coolify.io/docs/environment-variables#shared-variables' target='_blank'>here</a>."></x-helper>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-col gap-2">
|
<div class="flex flex-col gap-2">
|
||||||
@forelse ($project->environment_variables->sort()->sortBy('real_value') as $env)
|
@forelse ($project->environment_variables->sort()->sortBy('real_value') as $env)
|
||||||
|
@ -55,7 +55,7 @@ class="font-normal text-white normal-case border-none rounded btn btn-primary bt
|
|||||||
</x-slide-over>
|
</x-slide-over>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-center gap-2 pb-4">You can use these variables anywhere with <span class="text-warning">@{{environment.VARIABLENAME}}</span><x-helper
|
<div class="flex items-center gap-2 pb-4">You can use these variables anywhere with <span class="text-warning">@{{environment.VARIABLENAME}}</span><x-helper
|
||||||
helper="More info <a class='text-white underline' href='https://coolify.io/docs/environment-variables#shared-variables' target='_blank'>here</a>."></x-helper>
|
helper="More info in upstream docs<a class='text-white underline' href='https://coolify.io/docs/environment-variables#shared-variables' target='_blank'>here</a>."></x-helper>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-col gap-2">
|
<div class="flex flex-col gap-2">
|
||||||
@forelse ($environment->environment_variables->sort()->sortBy('real_value') as $env)
|
@forelse ($environment->environment_variables->sort()->sortBy('real_value') as $env)
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<x-forms.textarea label="Docker Compose file"
|
<x-forms.textarea label="Docker Compose file"
|
||||||
helper="
|
helper="
|
||||||
You can use these variables in your Docker Compose file and Coolify will generate default values or replace them with the values you set on the UI forms.<br>
|
You can use these variables in your Docker Compose file and Last Hour Cloud will generate default values or replace them with the values you set on the UI forms.<br>
|
||||||
<br>
|
<br>
|
||||||
- SERVICE_FQDN_*: FQDN - could be changeable from the UI. (example: SERVICE_FQDN_GHOST)<br>
|
- SERVICE_FQDN_*: FQDN - could be changeable from the UI. (example: SERVICE_FQDN_GHOST)<br>
|
||||||
- SERVICE_URL_*: URL parsed from FQDN - could be changeable from the UI. (example: SERVICE_URL_GHOST)<br>
|
- SERVICE_URL_*: URL parsed from FQDN - could be changeable from the UI. (example: SERVICE_URL_GHOST)<br>
|
||||||
|
@ -207,7 +207,7 @@ class="w-full text-white rounded input input-sm bg-coolgray-200 disabled:bg-cool
|
|||||||
<div class="flex items-center justify-center pt-4">
|
<div class="flex items-center justify-center pt-4">
|
||||||
<x-forms.checkbox instantSave wire:model="includeSwarm"
|
<x-forms.checkbox instantSave wire:model="includeSwarm"
|
||||||
helper="Swarm clusters are excluded from this list by default. For database, services or complex compose deployments with databases to work with Swarm,
|
helper="Swarm clusters are excluded from this list by default. For database, services or complex compose deployments with databases to work with Swarm,
|
||||||
you need to set a few things on the server. Read more <a class='text-white underline' href='https://coolify.io/docs/docker/swarm#database-requirements' target='_blank'>here</a>."
|
you need to set a few things on the server. Read more in upstream docs <a class='text-white underline' href='https://coolify.io/docs/docker/swarm#database-requirements' target='_blank'>here</a>."
|
||||||
label="Include Swarm Clusters" />
|
label="Include Swarm Clusters" />
|
||||||
</div>
|
</div>
|
||||||
@endif --}}
|
@endif --}}
|
||||||
|
@ -18,12 +18,12 @@
|
|||||||
<div class="flex gap-2">
|
<div class="flex gap-2">
|
||||||
@if (!$application->serviceType()?->contains(str($application->image)->before(':')))
|
@if (!$application->serviceType()?->contains(str($application->image)->before(':')))
|
||||||
@if ($application->required_fqdn)
|
@if ($application->required_fqdn)
|
||||||
<x-forms.input required placeholder="https://app.coolify.io" label="Domains"
|
<x-forms.input required placeholder="https://app.lasthourhosting.org" label="Domains"
|
||||||
id="application.fqdn"
|
id="application.fqdn"
|
||||||
helper="You can specify one domain with path or more with comma. You can specify a port to bind the domain to.<br><br><span class='text-helper'>Example</span><br>- http://app.coolify.io, https://cloud.coolify.io/dashboard<br>- http://app.coolify.io/api/v3<br>- http://app.coolify.io:3000 -> app.coolify.io will point to port 3000 inside the container. "></x-forms.input>
|
helper="You can specify one domain with path or more with comma. You can specify a port to bind the domain to.<br><br><span class='text-helper'>Example</span><br>- http://app.lasthourhosting.org, https://cloud.lasthourhosting.org/dashboard<br>- http://app.lasthourhosting.org/api/v3<br>- http://app.lasthourhosting.org:3000 -> app.lasthourhosting.org will point to port 3000 inside the container. "></x-forms.input>
|
||||||
@else
|
@else
|
||||||
<x-forms.input placeholder="https://app.coolify.io" label="Domains" id="application.fqdn"
|
<x-forms.input placeholder="https://app.lasthourhosting.org" label="Domains" id="application.fqdn"
|
||||||
helper="You can specify one domain with path or more with comma. You can specify a port to bind the domain to.<br><br><span class='text-helper'>Example</span><br>- http://app.coolify.io, https://cloud.coolify.io/dashboard<br>- http://app.coolify.io/api/v3<br>- http://app.coolify.io:3000 -> app.coolify.io will point to port 3000 inside the container. "></x-forms.input>
|
helper="You can specify one domain with path or more with comma. You can specify a port to bind the domain to.<br><br><span class='text-helper'>Example</span><br>- http://app.lasthourhosting.org, https://cloud.lasthourhosting.org/dashboard<br>- http://app.lasthourhosting.org/api/v3<br>- http://app.lasthourhosting.org:3000 -> app.lasthourhosting.org will point to port 3000 inside the container. "></x-forms.input>
|
||||||
@endif
|
@endif
|
||||||
@endif
|
@endif
|
||||||
<x-forms.input required
|
<x-forms.input required
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="w-96">
|
<div class="w-96">
|
||||||
<x-forms.checkbox instantSave id="service.connect_to_docker_network" label="Connect To Predefined Network"
|
<x-forms.checkbox instantSave id="service.connect_to_docker_network" label="Connect To Predefined Network"
|
||||||
helper="By default, you do not reach the Coolify defined networks.<br>Starting a docker compose based resource will have an internal network. <br>If you connect to a Coolify defined network, you maybe need to use different internal DNS names to connect to a resource.<br><br>For more information, check <a class='text-white underline' href='https://coolify.io/docs/docker/compose#connect-to-predefined-networks'>this</a>." />
|
helper="By default, you do not reach the Last Hour Cloud defined networks.<br>Starting a docker compose based resource will have an internal network. <br>If you connect to a Last Hour Cloud defined network, you maybe need to use different internal DNS names to connect to a resource.<br><br>For more information, check the upstream <a class='text-white underline' href='https://coolify.io/docs/docker/compose#connect-to-predefined-networks'>docs</a>." />
|
||||||
</div>
|
</div>
|
||||||
@if ($fields)
|
@if ($fields)
|
||||||
<div>
|
<div>
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
<div class="flex items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<h2>Webhooks</h2>
|
<h2>Webhooks</h2>
|
||||||
<x-helper
|
<x-helper
|
||||||
helper="For more details goto our <a class='text-white underline' href='https://coolify.io/docs/api/deploy-webhook' target='_blank'>docs</a>." />
|
helper="For more details go to the upstream <a class='text-white underline' href='https://coolify.io/docs/api/deploy-webhook' target='_blank'>docs</a>." />
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<x-forms.input readonly
|
<x-forms.input readonly
|
||||||
helper="See details in our <a target='_blank' class='text-white underline' href='https://coolify.io/docs/api/authentication'>documentation</a>."
|
helper="See details in the upstream <a target='_blank' class='text-white underline' href='https://coolify.io/docs/api/authentication'>documentation</a>."
|
||||||
label="Deploy Webhook (auth required)" id="deploywebhook"></x-forms.input>
|
label="Deploy Webhook (auth required)" id="deploywebhook"></x-forms.input>
|
||||||
</div>
|
</div>
|
||||||
@if ($resource->type() !== 'service')
|
@if ($resource->type() !== 'service')
|
||||||
|
@ -13,12 +13,12 @@
|
|||||||
$wire.showNotification = true;
|
$wire.showNotification = true;
|
||||||
@endif
|
@endif
|
||||||
console.error(
|
console.error(
|
||||||
'Coolify could not connect to the new realtime service introduced in beta.154. This will cause unusual problems on the UI if not fixed! Please check the related documentation (https://coolify.io/docs/cloudflare/tunnels) or get help on Discord (https://coollabs.io/discord).)'
|
'Last Hour Cloud could not connect to the new realtime service introduced in beta.154. This will cause unusual problems on the UI if not fixed! Please check the related upstream documentation (https://coolify.io/docs/cloudflare/tunnels) or get help on Discord (https://coollabs.io/discord).)'
|
||||||
);
|
);
|
||||||
clearInterval(checkPusherInterval);
|
clearInterval(checkPusherInterval);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
console.log('Coolify Realtime Service is connected!');
|
console.log('Last Hour Cloud Realtime Service is connected!');
|
||||||
clearInterval(checkPusherInterval);
|
clearInterval(checkPusherInterval);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -26,7 +26,7 @@
|
|||||||
$wire.showNotification = true;
|
$wire.showNotification = true;
|
||||||
@endif
|
@endif
|
||||||
console.error(
|
console.error(
|
||||||
'Coolify could not connect to the new realtime service introduced in beta.154. This will cause unusual problems on the UI if not fixed! Please check the related documentation (https://coolify.io/docs/cloudflare/tunnels) or get help on Discord (https://coollabs.io/discord).)'
|
'Last Hour Cloud could not connect to the new realtime service introduced in beta.154. This will cause unusual problems on the UI if not fixed! Please check the related upstream documentation (https://coolify.io/docs/cloudflare/tunnels) or get help on Discord (https://coollabs.io/discord).)'
|
||||||
);
|
);
|
||||||
clearInterval(checkPusherInterval);
|
clearInterval(checkPusherInterval);
|
||||||
}
|
}
|
||||||
@ -35,10 +35,10 @@
|
|||||||
@endscript
|
@endscript
|
||||||
<div class="toast z-[9999]" x-cloak x-show="showNotification">
|
<div class="toast z-[9999]" x-cloak x-show="showNotification">
|
||||||
<div class="flex flex-col text-white border border-red-500 border-dashed rounded alert bg-coolgray-200">
|
<div class="flex flex-col text-white border border-red-500 border-dashed rounded alert bg-coolgray-200">
|
||||||
<span><span class="font-bold text-left text-red-500">WARNING: </span>Coolify could not connect to the new
|
<span><span class="font-bold text-left text-red-500">WARNING: </span>Last Hour Cloud could not connect to the new
|
||||||
realtime service introduced in beta.154. <br>This will cause unusual problems on the UI if not
|
realtime service introduced in beta.154. <br>This will cause unusual problems on the UI if not
|
||||||
fixed!<br><br>Please check the
|
fixed!<br><br>Please check the
|
||||||
related <a href='https://coolify.io/docs/cloudflare/tunnels' target='_blank'>documentation</a> or get
|
related upstream <a href='https://coolify.io/docs/cloudflare/tunnels' target='_blank'>documentation</a> or get
|
||||||
help on <a href='https://coollabs.io/discord' target='_blank'>Discord</a>.</span>
|
help on <a href='https://coollabs.io/discord' target='_blank'>Discord</a>.</span>
|
||||||
<x-forms.button class="bg-coolgray-400" wire:click='disable'>Acknowledge the problem and disable this
|
<x-forms.button class="bg-coolgray-400" wire:click='disable'>Acknowledge the problem and disable this
|
||||||
popup</x-forms.button>
|
popup</x-forms.button>
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
<div>
|
<div>
|
||||||
@if ($server->id !== 0)
|
@if ($server->id !== 0)
|
||||||
<h2 class="pt-4">Danger Zone</h2>
|
<h2 class="pt-4">Danger Zone</h2>
|
||||||
<div class="">Woah. I hope you know what are you doing.</div>
|
<div class="">Wait a minute, We hope you know what are you doing.</div>
|
||||||
<h4 class="pt-4">Delete Server</h4>
|
<h4 class="pt-4">Delete Server</h4>
|
||||||
<div class="pb-4">This will remove this server from Coolify. Beware! There is no coming
|
<div class="pb-4">This will remove this server from Last Hour Cloud. Beware! There is no coming
|
||||||
back!
|
back!
|
||||||
</div>
|
</div>
|
||||||
@if ($server->definedResources()->count() > 0)
|
@if ($server->definedResources()->count() > 0)
|
||||||
|
@ -70,27 +70,27 @@ class="w-full mt-8 mb-4 font-bold box-without-bg bg-coollabs hover:bg-coollabs-1
|
|||||||
label="Use it as a build server?" />
|
label="Use it as a build server?" />
|
||||||
@else
|
@else
|
||||||
<x-forms.checkbox instantSave
|
<x-forms.checkbox instantSave
|
||||||
helper="If you are using Cloudflare Tunnels, enable this. It will proxy all SSH requests to your server through Cloudflare.<br><span class='text-warning'>Coolify does not install or set up Cloudflare (cloudflared) on your server.</span>"
|
helper="If you are using Cloudflare Tunnels, enable this. It will proxy all SSH requests to your server through Cloudflare.<br><span class='text-warning'>Last Hour Cloud does not install or set up Cloudflare (cloudflared) on your server.</span>"
|
||||||
id="server.settings.is_cloudflare_tunnel" label="Cloudflare Tunnel" />
|
id="server.settings.is_cloudflare_tunnel" label="Cloudflare Tunnel" />
|
||||||
@if ($server->isSwarm())
|
@if ($server->isSwarm())
|
||||||
<div class="pt-6"> Swarm support is experimental. </div>
|
<div class="pt-6"> Swarm support is experimental. </div>
|
||||||
@endif
|
@endif
|
||||||
@if ($server->settings->is_swarm_worker)
|
@if ($server->settings->is_swarm_worker)
|
||||||
<x-forms.checkbox disabled instantSave type="checkbox" id="server.settings.is_swarm_manager"
|
<x-forms.checkbox disabled instantSave type="checkbox" id="server.settings.is_swarm_manager"
|
||||||
helper="For more information, please read the documentation <a class='text-white' href='https://coolify.io/docs/docker/swarm' target='_blank'>here</a>."
|
helper="For more information, please read the upstream documentation <a class='text-white' href='https://coolify.io/docs/docker/swarm' target='_blank'>here</a>."
|
||||||
label="Is it a Swarm Manager?" />
|
label="Is it a Swarm Manager?" />
|
||||||
@else
|
@else
|
||||||
<x-forms.checkbox instantSave type="checkbox" id="server.settings.is_swarm_manager"
|
<x-forms.checkbox instantSave type="checkbox" id="server.settings.is_swarm_manager"
|
||||||
helper="For more information, please read the documentation <a class='text-white' href='https://coolify.io/docs/docker/swarm' target='_blank'>here</a>."
|
helper="For more information, please read the upstream documentation <a class='text-white' href='https://coolify.io/docs/docker/swarm' target='_blank'>here</a>."
|
||||||
label="Is it a Swarm Manager?" />
|
label="Is it a Swarm Manager?" />
|
||||||
@endif
|
@endif
|
||||||
@if ($server->settings->is_swarm_manager)
|
@if ($server->settings->is_swarm_manager)
|
||||||
<x-forms.checkbox disabled instantSave type="checkbox" id="server.settings.is_swarm_worker"
|
<x-forms.checkbox disabled instantSave type="checkbox" id="server.settings.is_swarm_worker"
|
||||||
helper="For more information, please read the documentation <a class='text-white' href='https://coolify.io/docs/docker/swarm' target='_blank'>here</a>."
|
helper="For more information, please read the upstream documentation <a class='text-white' href='https://coolify.io/docs/docker/swarm' target='_blank'>here</a>."
|
||||||
label="Is it a Swarm Worker?" />
|
label="Is it a Swarm Worker?" />
|
||||||
@else
|
@else
|
||||||
<x-forms.checkbox instantSave type="checkbox" id="server.settings.is_swarm_worker"
|
<x-forms.checkbox instantSave type="checkbox" id="server.settings.is_swarm_worker"
|
||||||
helper="For more information, please read the documentation <a class='text-white' href='https://coolify.io/docs/docker/swarm' target='_blank'>here</a>."
|
helper="For more information, please read the upstream documentation <a class='text-white' href='https://coolify.io/docs/docker/swarm' target='_blank'>here</a>."
|
||||||
label="Is it a Swarm Worker?" />
|
label="Is it a Swarm Worker?" />
|
||||||
@endif
|
@endif
|
||||||
@endif
|
@endif
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
&
|
&
|
||||||
@endif
|
@endif
|
||||||
@if (!$server->settings->is_usable)
|
@if (!$server->settings->is_usable)
|
||||||
<span>Not usable by Coolify</span>
|
<span>Not usable by Last Hour Cloud</span>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -30,25 +30,25 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="w-96">
|
<div class="w-96">
|
||||||
<h3 class="pt-6">Swarm Support</h3>
|
<h3 class="pt-6">Swarm Support</h3>
|
||||||
<div> Swarm support is experimental. Read the docs <a class='text-white'
|
<div> Swarm support is experimental. Read the upstream docs to learn more <a class='text-white'
|
||||||
href='https://coolify.io/docs/docker/swarm#deploy-with-persistent-storage'
|
href='https://coolify.io/docs/docker/swarm#deploy-with-persistent-storage'
|
||||||
target='_blank'>here</a>.</div>
|
target='_blank'>here</a>.</div>
|
||||||
@if ($is_swarm_worker || $is_build_server)
|
@if ($is_swarm_worker || $is_build_server)
|
||||||
<x-forms.checkbox disabled instantSave type="checkbox" id="is_swarm_manager"
|
<x-forms.checkbox disabled instantSave type="checkbox" id="is_swarm_manager"
|
||||||
helper="For more information, please read the documentation <a class='text-white' href='https://coolify.io/docs/docker/swarm' target='_blank'>here</a>."
|
helper="For more information, please read the the upstream documentation <a class='text-white' href='https://coolify.io/docs/docker/swarm' target='_blank'>here</a>."
|
||||||
label="Is it a Swarm Manager?" />
|
label="Is it a Swarm Manager?" />
|
||||||
@else
|
@else
|
||||||
<x-forms.checkbox type="checkbox" instantSave id="is_swarm_manager"
|
<x-forms.checkbox type="checkbox" instantSave id="is_swarm_manager"
|
||||||
helper="For more information, please read the documentation <a class='text-white' href='https://coolify.io/docs/docker/swarm' target='_blank'>here</a>."
|
helper="For more information, please read the the upstream documentation <a class='text-white' href='https://coolify.io/docs/docker/swarm' target='_blank'>here</a>."
|
||||||
label="Is it a Swarm Manager?" />
|
label="Is it a Swarm Manager?" />
|
||||||
@endif
|
@endif
|
||||||
@if ($is_swarm_manager|| $is_build_server)
|
@if ($is_swarm_manager|| $is_build_server)
|
||||||
<x-forms.checkbox disabled instantSave type="checkbox" id="is_swarm_worker"
|
<x-forms.checkbox disabled instantSave type="checkbox" id="is_swarm_worker"
|
||||||
helper="For more information, please read the documentation <a class='text-white' href='https://coolify.io/docs/docker/swarm' target='_blank'>here</a>."
|
helper="For more information, please read the upstream documentation <a class='text-white' href='https://coolify.io/docs/docker/swarm' target='_blank'>here</a>."
|
||||||
label="Is it a Swarm Worker?" />
|
label="Is it a Swarm Worker?" />
|
||||||
@else
|
@else
|
||||||
<x-forms.checkbox type="checkbox" instantSave id="is_swarm_worker"
|
<x-forms.checkbox type="checkbox" instantSave id="is_swarm_worker"
|
||||||
helper="For more information, please read the documentation <a class='text-white' href='https://coolify.io/docs/docker/swarm' target='_blank'>here</a>."
|
helper="For more information, please read the upstream documentation <a class='text-white' href='https://coolify.io/docs/docker/swarm' target='_blank'>here</a>."
|
||||||
label="Is it a Swarm Worker?" />
|
label="Is it a Swarm Worker?" />
|
||||||
@endif
|
@endif
|
||||||
@if ($is_swarm_worker && count($swarm_managers) > 0)
|
@if ($is_swarm_worker && count($swarm_managers) > 0)
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
configurations.
|
configurations.
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
<x-forms.input placeholder="https://app.coolify.io" id="redirect_url" label="Default Redirect 404"
|
<x-forms.input placeholder="https://lasthourhosting.org" id="redirect_url" label="Default Redirect 404"
|
||||||
helper="All urls that has no service available will be redirected to this domain." />
|
helper="All urls that has no service available will be redirected to this domain." />
|
||||||
<div wire:loading wire:target="loadProxyConfiguration" class="pt-4">
|
<div wire:loading wire:target="loadProxyConfiguration" class="pt-4">
|
||||||
<x-loading text="Loading proxy configuration..." />
|
<x-loading text="Loading proxy configuration..." />
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
<h2>Resources</h2>
|
<h2>Resources</h2>
|
||||||
<x-forms.button wire:click="refreshStatus">Refresh</x-forms.button>
|
<x-forms.button wire:click="refreshStatus">Refresh</x-forms.button>
|
||||||
</div>
|
</div>
|
||||||
<div class="pb-4 title">Here you can find all resources that are managed by Coolify.</div>
|
<div class="pb-4 title">Here you can find all resources that are managed by Last Hour Cloud.</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-col">
|
<div class="flex flex-col">
|
||||||
<div class="flex flex-col">
|
<div class="flex flex-col">
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
</x-forms.button>
|
</x-forms.button>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
<div class="pb-4">Backup your Coolify instance settings</div>
|
<div class="pb-4">Backup your Last Hour Cloud instance settings</div>
|
||||||
<div>
|
<div>
|
||||||
@if (isset($database))
|
@if (isset($database))
|
||||||
<div class="flex flex-col gap-3 pb-4">
|
<div class="flex flex-col gap-3 pb-4">
|
||||||
@ -24,8 +24,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<livewire:project.database.backup-edit :backup="$backup" :s3s="$s3s" :status="data_get($database, 'status')" />
|
<livewire:project.database.backup-edit :backup="$backup" :s3s="$s3s" :status="data_get($database, 'status')" />
|
||||||
@else
|
@else
|
||||||
To configure automatic backup for your Coolify instance, you first need to add as a database resource
|
To configure automatic backup for your Last Hour Cloud instance, you first need to add as a database resource
|
||||||
into Coolify.
|
into Last Hour Cloud.
|
||||||
<x-forms.button wire:click="add_coolify_database">Add Database</x-forms.button>
|
<x-forms.button wire:click="add_coolify_database">Add Database</x-forms.button>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
@ -6,11 +6,11 @@
|
|||||||
Save
|
Save
|
||||||
</x-forms.button>
|
</x-forms.button>
|
||||||
</div>
|
</div>
|
||||||
<div>General configuration for your Coolify instance.</div>
|
<div>General configuration for your Last Hour Cloud instance.</div>
|
||||||
|
|
||||||
<div class="flex flex-col gap-2 pt-4">
|
<div class="flex flex-col gap-2 pt-4">
|
||||||
<div class="flex items-end gap-2">
|
<div class="flex items-end gap-2">
|
||||||
<x-forms.input id="settings.fqdn" label="Instance's Domain" placeholder="https://coolify.io" />
|
<x-forms.input id="settings.fqdn" label="Instance's Domain" placeholder="https://lasthourhosting.org" />
|
||||||
<x-forms.input id="settings.custom_dns_servers" label="DNS Servers" helper="DNS servers for validation FQDNS againts. A comma separated list of DNS servers." placeholder="1.1.1.1,8.8.8.8" />
|
<x-forms.input id="settings.custom_dns_servers" label="DNS Servers" helper="DNS servers for validation FQDNS againts. A comma separated list of DNS servers." placeholder="1.1.1.1,8.8.8.8" />
|
||||||
<x-forms.checkbox instantSave id="is_dns_validation_enabled" label="Validate DNS settings?" />
|
<x-forms.checkbox instantSave id="is_dns_validation_enabled" label="Validate DNS settings?" />
|
||||||
</div>
|
</div>
|
||||||
@ -25,9 +25,9 @@
|
|||||||
<div class="flex flex-col py-6 text-right w-80">
|
<div class="flex flex-col py-6 text-right w-80">
|
||||||
@if(!is_null(env('AUTOUPDATE', null)))
|
@if(!is_null(env('AUTOUPDATE', null)))
|
||||||
<x-forms.checkbox instantSave helper="AUTOUPDATE is set in .env file, you need to modify it there." disabled
|
<x-forms.checkbox instantSave helper="AUTOUPDATE is set in .env file, you need to modify it there." disabled
|
||||||
id="is_auto_update_enabled" label="Auto Update Coolify" />
|
id="is_auto_update_enabled" label="Auto Update Last Hour Cloud" />
|
||||||
@else
|
@else
|
||||||
<x-forms.checkbox instantSave id="is_auto_update_enabled" label="Auto Update Coolify" />
|
<x-forms.checkbox instantSave id="is_auto_update_enabled" label="Auto Update Last Hour Cloud" />
|
||||||
@endif
|
@endif
|
||||||
<x-forms.checkbox instantSave id="is_registration_enabled" label="Registration Allowed" />
|
<x-forms.checkbox instantSave id="is_registration_enabled" label="Registration Allowed" />
|
||||||
<x-forms.checkbox instantSave id="do_not_track" label="Do Not Track" />
|
<x-forms.checkbox instantSave id="do_not_track" label="Do Not Track" />
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
@if (!isCloud())
|
@if (!isCloud())
|
||||||
<div class="w-48">
|
<div class="w-48">
|
||||||
<x-forms.checkbox label="System Wide?"
|
<x-forms.checkbox label="System Wide?"
|
||||||
helper="If checked, this GitHub App will be available for everyone in this Coolify instance."
|
helper="If checked, this GitHub App will be available for everyone in this Last Hour Cloud instance."
|
||||||
instantSave id="github_app.is_system_wide" />
|
instantSave id="github_app.is_system_wide" />
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
@ -98,7 +98,7 @@
|
|||||||
@if (!isCloud() || isDev())
|
@if (!isCloud() || isDev())
|
||||||
<div class="flex items-end gap-2">
|
<div class="flex items-end gap-2">
|
||||||
<x-forms.select wire:model.live='webhook_endpoint' label="Webhook Endpoint"
|
<x-forms.select wire:model.live='webhook_endpoint' label="Webhook Endpoint"
|
||||||
helper="All Git webhooks will be sent to this endpoint. <br><br>If you would like to use domain instead of IP address, set your Coolify instance's FQDN in the Settings menu.">
|
helper="All Git webhooks will be sent to this endpoint. <br><br>If you would like to use domain instead of IP address, set your Last Hour Cloud instance's FQDN in the Settings menu.">
|
||||||
@if ($ipv4)
|
@if ($ipv4)
|
||||||
<option value="{{ $ipv4 }}">Use {{ $ipv4 }}</option>
|
<option value="{{ $ipv4 }}">Use {{ $ipv4 }}</option>
|
||||||
@endif
|
@endif
|
||||||
|
@ -2,11 +2,10 @@
|
|||||||
@if (data_get(auth()->user(), 'is_notification_sponsorship_enabled'))
|
@if (data_get(auth()->user(), 'is_notification_sponsorship_enabled'))
|
||||||
<div class="toast">
|
<div class="toast">
|
||||||
<div class="flex flex-col text-white rounded alert bg-coolgray-200">
|
<div class="flex flex-col text-white rounded alert bg-coolgray-200">
|
||||||
<span>Love Coolify as we do? <a href="https://coolify.io/sponsorships"
|
<span>Like Last Hour Cloud? <a href="https://lasthourhosting.org/"
|
||||||
class="underline text-warning">Please
|
class="underline text-warning">Please
|
||||||
consider donating!</a>💜</span>
|
consider sharing about us!</a></span>
|
||||||
<span>It enables us to keep creating features without paywalls, ensuring our work remains free and
|
<span>Your support enables us to keep creating services that support sharing the Gospel of Jesus Christ. 1 John 2:18</span>
|
||||||
open.</span>
|
|
||||||
<x-forms.button class="bg-coolgray-400" wire:click='disable'>Disable This Popup</x-forms.button>
|
<x-forms.button class="bg-coolgray-400" wire:click='disable'>Disable This Popup</x-forms.button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -13,7 +13,7 @@ class="font-normal text-white normal-case border-none rounded btn btn-primary bt
|
|||||||
</x-slide-over>
|
</x-slide-over>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-center gap-2 pb-4">You can use these variables anywhere with <span class="text-warning">@{{team.VARIABLENAME}}</span> <x-helper
|
<div class="flex items-center gap-2 pb-4">You can use these variables anywhere with <span class="text-warning">@{{team.VARIABLENAME}}</span> <x-helper
|
||||||
helper="More info <a class='text-white underline' href='https://coolify.io/docs/environment-variables#shared-variables' target='_blank'>here</a>."></x-helper>
|
helper="More info in upstream docs<a class='text-white underline' href='https://coolify.io/docs/environment-variables#shared-variables' target='_blank'>here</a>."></x-helper>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex flex-col gap-2">
|
<div class="flex flex-col gap-2">
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<div class="w-96 min-w-fit">
|
<div class="w-96 min-w-fit">
|
||||||
<div class="flex flex-col items-center pb-8">
|
<div class="flex flex-col items-center pb-8">
|
||||||
<a href="{{ route('dashboard') }}">
|
<a href="{{ route('dashboard') }}">
|
||||||
<div class="text-5xl font-bold tracking-tight text-center text-white">Last Hour</div>
|
<div class="text-5xl font-bold tracking-tight text-center text-white">Last Hour Cloud</div>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-center justify-center pb-4 text-center">
|
<div class="flex items-center justify-center pb-4 text-center">
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
## Do not modify this file. You will lose the ability to install and auto-update!
|
|
||||||
|
|
||||||
set -e # Exit immediately if a command exits with a non-zero status
|
set -e # Exit immediately if a command exits with a non-zero status
|
||||||
## $1 could be empty, so we need to disable this check
|
## $1 could be empty, so we need to disable this check
|
||||||
@ -9,7 +8,7 @@ set -o pipefail # Cause a pipeline to return the status of the last command that
|
|||||||
VERSION="1.2.0"
|
VERSION="1.2.0"
|
||||||
DOCKER_VERSION="24.0"
|
DOCKER_VERSION="24.0"
|
||||||
|
|
||||||
CDN="https://cdn.coollabs.io/coolify"
|
CDN="https://cdn.githaven.org/lasthourcloud"
|
||||||
OS_TYPE=$(grep -w "ID" /etc/os-release | cut -d "=" -f 2 | tr -d '"')
|
OS_TYPE=$(grep -w "ID" /etc/os-release | cut -d "=" -f 2 | tr -d '"')
|
||||||
|
|
||||||
if [ "$OS_TYPE" = "arch" ]; then
|
if [ "$OS_TYPE" = "arch" ]; then
|
||||||
@ -42,13 +41,13 @@ if [ "$1" != "" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e "-------------"
|
echo -e "-------------"
|
||||||
echo -e "Welcome to Coolify v4 beta installer!"
|
echo -e "Welcome to Last Hour Cloud v4 beta installer!"
|
||||||
echo -e "This script will install everything for you."
|
echo -e "This script will install everything for you."
|
||||||
echo -e "(Source code: https://github.com/coollabsio/coolify/blob/main/scripts/install.sh)\n"
|
echo -e "(Source code: https://https://githaven.org/Shiloh/lasthourcloud/blob/main/scripts/install.sh)\n"
|
||||||
echo -e "-------------"
|
echo -e "-------------"
|
||||||
|
|
||||||
echo "OS: $OS_TYPE $OS_VERSION"
|
echo "OS: $OS_TYPE $OS_VERSION"
|
||||||
echo "Coolify version: $LATEST_VERSION"
|
echo "Last Hour Cloud version: $LATEST_VERSION"
|
||||||
|
|
||||||
echo -e "-------------"
|
echo -e "-------------"
|
||||||
echo "Installing required packages..."
|
echo "Installing required packages..."
|
||||||
@ -101,7 +100,7 @@ fi
|
|||||||
if [ "$SSH_DETECTED" = "false" ]; then
|
if [ "$SSH_DETECTED" = "false" ]; then
|
||||||
echo "###############################################################################"
|
echo "###############################################################################"
|
||||||
echo "WARNING: Could not detect if OpenSSH server is installed and running - this does not mean that it is not installed, just that we could not detect it."
|
echo "WARNING: Could not detect if OpenSSH server is installed and running - this does not mean that it is not installed, just that we could not detect it."
|
||||||
echo -e "Please make sure it is set, otherwise Coolify cannot connect to the host system. \n"
|
echo -e "Please make sure it is set, otherwise Last Hour Cloud cannot connect to the host system. \n"
|
||||||
echo "###############################################################################"
|
echo "###############################################################################"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -118,7 +117,7 @@ if [ "$SSH_PERMIT_ROOT_LOGIN" != "true" ]; then
|
|||||||
echo "###############################################################################"
|
echo "###############################################################################"
|
||||||
echo "WARNING: PermitRootLogin is not enabled in /etc/ssh/sshd_config."
|
echo "WARNING: PermitRootLogin is not enabled in /etc/ssh/sshd_config."
|
||||||
echo -e "It is set to $SSH_PERMIT_ROOT_LOGIN_CONFIG. Should be prohibit-password, yes or without-password.\n"
|
echo -e "It is set to $SSH_PERMIT_ROOT_LOGIN_CONFIG. Should be prohibit-password, yes or without-password.\n"
|
||||||
echo -e "Please make sure it is set, otherwise Coolify cannot connect to the host system. \n"
|
echo -e "Please make sure it is set, otherwise Last Hour Cloud cannot connect to the host system. \n"
|
||||||
echo "(Currently we only support root user to login via SSH, this will be changed in the future.)"
|
echo "(Currently we only support root user to login via SSH, this will be changed in the future.)"
|
||||||
echo "###############################################################################"
|
echo "###############################################################################"
|
||||||
fi
|
fi
|
||||||
@ -197,20 +196,27 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e "-------------"
|
echo -e "-------------"
|
||||||
|
#add directories here that you want to modify
|
||||||
mkdir -p /data/coolify/{source,ssh,applications,databases,backups,services,proxy}
|
mkdir -p /data/coolify/{source,ssh,applications,databases,backups,services,proxy,tailwind}
|
||||||
mkdir -p /data/coolify/ssh/{keys,mux}
|
mkdir -p /data/coolify/ssh/{keys,mux}
|
||||||
mkdir -p /data/coolify/proxy/dynamic
|
mkdir -p /data/coolify/proxy/dynamic
|
||||||
|
|
||||||
chown -R 9999:root /data/coolify
|
|
||||||
chmod -R 700 /data/coolify
|
|
||||||
|
|
||||||
echo "Downloading required files from CDN..."
|
echo "Downloading required files from CDN..."
|
||||||
curl -fsSL $CDN/docker-compose.yml -o /data/coolify/source/docker-compose.yml
|
curl -fsSL $CDN/docker-compose.yml -o /data/coolify/source/docker-compose.yml
|
||||||
curl -fsSL $CDN/docker-compose.prod.yml -o /data/coolify/source/docker-compose.prod.yml
|
curl -fsSL $CDN/docker-compose.prod.yml -o /data/coolify/source/docker-compose.prod.yml
|
||||||
curl -fsSL $CDN/.env.production -o /data/coolify/source/.env.production
|
curl -fsSL $CDN/.env.production -o /data/coolify/source/.env.production
|
||||||
curl -fsSL $CDN/upgrade.sh -o /data/coolify/source/upgrade.sh
|
curl -fsSL $CDN/upgrade.sh -o /data/coolify/source/upgrade.sh
|
||||||
|
|
||||||
|
# echo "Copying required files from Last Hour Cloud git repo..."
|
||||||
|
# cp /home/lasthour/lasthourcloud/docker-compose.yml /data/coolify/source/docker-compose.yml
|
||||||
|
# cp /home/lasthour/lasthourcloud/docker-compose.prod.yml /data/coolify/source/docker-compose.prod.yml
|
||||||
|
# cp /home/lasthour/lasthourcloud/.env.production /data/coolify/source/.env.production
|
||||||
|
# cp /home/lasthour/lasthourcloud/scripts/upgrade.sh /data/coolify/source/upgrade.sh
|
||||||
|
|
||||||
|
|
||||||
|
chown -R 9999:root /data/coolify
|
||||||
|
chmod -R 700 /data/coolify
|
||||||
|
|
||||||
# Copy .env.example if .env does not exist
|
# Copy .env.example if .env does not exist
|
||||||
if [ ! -f /data/coolify/source/.env ]; then
|
if [ ! -f /data/coolify/source/.env ]; then
|
||||||
cp /data/coolify/source/.env.production /data/coolify/source/.env
|
cp /data/coolify/source/.env.production /data/coolify/source/.env
|
||||||
@ -255,8 +261,10 @@ fi
|
|||||||
if ! grep -qw "root@coolify" ~/.ssh/authorized_keys; then
|
if ! grep -qw "root@coolify" ~/.ssh/authorized_keys; then
|
||||||
addSshKey
|
addSshKey
|
||||||
fi
|
fi
|
||||||
|
echo "Generated SSH access"
|
||||||
|
|
||||||
|
echo "Begin upgrade.sh"
|
||||||
bash /data/coolify/source/upgrade.sh "${LATEST_VERSION:-latest}"
|
bash /data/coolify/source/upgrade.sh "${LATEST_VERSION:-latest}"
|
||||||
|
|
||||||
echo -e "\nCongratulations! Your Coolify instance is ready to use.\n"
|
echo -e "\nCongratulations! Your Last Hour Cloud instance is ready to use.\n"
|
||||||
echo "Please visit http://$(curl -4s https://ifconfig.io):8000 to get started."
|
echo "Please visit http://$(curl -4s https://ifconfig.io):8000 to get started."
|
@ -1,270 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -e # Exit immediately if a command exits with a non-zero status
|
|
||||||
## $1 could be empty, so we need to disable this check
|
|
||||||
#set -u # Treat unset variables as an error and exit
|
|
||||||
set -o pipefail # Cause a pipeline to return the status of the last command that exited with a non-zero status
|
|
||||||
|
|
||||||
VERSION="1.2.0"
|
|
||||||
DOCKER_VERSION="24.0"
|
|
||||||
|
|
||||||
CDN="https://cdn.coollabs.io/coolify"
|
|
||||||
OS_TYPE=$(grep -w "ID" /etc/os-release | cut -d "=" -f 2 | tr -d '"')
|
|
||||||
|
|
||||||
if [ "$OS_TYPE" = "arch" ]; then
|
|
||||||
OS_VERSION="rolling"
|
|
||||||
else
|
|
||||||
OS_VERSION=$(grep -w "VERSION_ID" /etc/os-release | cut -d "=" -f 2 | tr -d '"')
|
|
||||||
fi
|
|
||||||
|
|
||||||
LATEST_VERSION=$(curl --silent $CDN/versions.json | grep -i version | sed -n '2p' | xargs | awk '{print $2}' | tr -d ',')
|
|
||||||
DATE=$(date +"%Y%m%d-%H%M%S")
|
|
||||||
|
|
||||||
if [ $EUID != 0 ]; then
|
|
||||||
echo "Please run as root"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
case "$OS_TYPE" in
|
|
||||||
arch | ubuntu | debian | raspbian | centos | fedora | rhel | ol | rocky | sles | opensuse-leap | opensuse-tumbleweed) ;;
|
|
||||||
*)
|
|
||||||
echo "This script only supports Debian, Redhat, Arch Linux, or SLES based operating systems for now."
|
|
||||||
exit
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# Overwrite LATEST_VERSION if user pass a version number
|
|
||||||
if [ "$1" != "" ]; then
|
|
||||||
LATEST_VERSION=$1
|
|
||||||
LATEST_VERSION="${LATEST_VERSION,,}"
|
|
||||||
LATEST_VERSION="${LATEST_VERSION#v}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo -e "-------------"
|
|
||||||
echo -e "Welcome to Coolify v4 beta installer!"
|
|
||||||
echo -e "This script will install everything for you."
|
|
||||||
echo -e "(Source code: https://github.com/coollabsio/coolify/blob/main/scripts/install.sh)\n"
|
|
||||||
echo -e "-------------"
|
|
||||||
|
|
||||||
echo "OS: $OS_TYPE $OS_VERSION"
|
|
||||||
echo "Coolify version: $LATEST_VERSION"
|
|
||||||
|
|
||||||
echo -e "-------------"
|
|
||||||
echo "Installing required packages..."
|
|
||||||
|
|
||||||
case "$OS_TYPE" in
|
|
||||||
arch)
|
|
||||||
pacman -Sy >/dev/null 2>&1 || true
|
|
||||||
if ! pacman -Q curl wget git jq >/dev/null 2>&1; then
|
|
||||||
pacman -S --noconfirm curl wget git jq >/dev/null 2>&1 || true
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
ubuntu | debian | raspbian)
|
|
||||||
apt update -y >/dev/null 2>&1
|
|
||||||
apt install -y curl wget git jq >/dev/null 2>&1
|
|
||||||
;;
|
|
||||||
centos | fedora | rhel | ol | rocky)
|
|
||||||
dnf install -y curl wget git jq >/dev/null 2>&1
|
|
||||||
;;
|
|
||||||
sles | opensuse-leap | opensuse-tumbleweed)
|
|
||||||
zypper refresh >/dev/null 2>&1
|
|
||||||
zypper install -y curl wget git jq >/dev/null 2>&1
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "This script only supports Debian, Redhat, Arch Linux, or SLES based operating systems for now."
|
|
||||||
exit
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# Detect OpenSSH server
|
|
||||||
SSH_DETECTED=false
|
|
||||||
if [ -x "$(command -v systemctl)" ]; then
|
|
||||||
if systemctl status sshd >/dev/null 2>&1; then
|
|
||||||
echo "OpenSSH server is installed."
|
|
||||||
SSH_DETECTED=true
|
|
||||||
fi
|
|
||||||
if systemctl status ssh >/dev/null 2>&1; then
|
|
||||||
echo "OpenSSH server is installed."
|
|
||||||
SSH_DETECTED=true
|
|
||||||
fi
|
|
||||||
elif [ -x "$(command -v service)" ]; then
|
|
||||||
if service sshd status >/dev/null 2>&1; then
|
|
||||||
echo "OpenSSH server is installed."
|
|
||||||
SSH_DETECTED=true
|
|
||||||
fi
|
|
||||||
if service ssh status >/dev/null 2>&1; then
|
|
||||||
echo "OpenSSH server is installed."
|
|
||||||
SSH_DETECTED=true
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
if [ "$SSH_DETECTED" = "false" ]; then
|
|
||||||
echo "###############################################################################"
|
|
||||||
echo "WARNING: Could not detect if OpenSSH server is installed and running - this does not mean that it is not installed, just that we could not detect it."
|
|
||||||
echo -e "Please make sure it is set, otherwise Coolify cannot connect to the host system. \n"
|
|
||||||
echo "###############################################################################"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Detect SSH PermitRootLogin
|
|
||||||
SSH_PERMIT_ROOT_LOGIN=false
|
|
||||||
SSH_PERMIT_ROOT_LOGIN_CONFIG=$(grep "^PermitRootLogin" /etc/ssh/sshd_config | awk '{print $2}') || SSH_PERMIT_ROOT_LOGIN_CONFIG="N/A (commented out or not found at all)"
|
|
||||||
if [ "$SSH_PERMIT_ROOT_LOGIN_CONFIG" = "prohibit-password" ] || [ "$SSH_PERMIT_ROOT_LOGIN_CONFIG" = "yes" ] || [ "$SSH_PERMIT_ROOT_LOGIN_CONFIG" = "without-password" ]; then
|
|
||||||
echo "PermitRootLogin is enabled."
|
|
||||||
SSH_PERMIT_ROOT_LOGIN=true
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
if [ "$SSH_PERMIT_ROOT_LOGIN" != "true" ]; then
|
|
||||||
echo "###############################################################################"
|
|
||||||
echo "WARNING: PermitRootLogin is not enabled in /etc/ssh/sshd_config."
|
|
||||||
echo -e "It is set to $SSH_PERMIT_ROOT_LOGIN_CONFIG. Should be prohibit-password, yes or without-password.\n"
|
|
||||||
echo -e "Please make sure it is set, otherwise Coolify cannot connect to the host system. \n"
|
|
||||||
echo "(Currently we only support root user to login via SSH, this will be changed in the future.)"
|
|
||||||
echo "###############################################################################"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! [ -x "$(command -v docker)" ]; then
|
|
||||||
echo "Docker is not installed. Installing Docker."
|
|
||||||
if [ "$OS_TYPE" = "arch" ]; then
|
|
||||||
pacman -Sy docker docker-compose --noconfirm
|
|
||||||
systemctl enable docker.service
|
|
||||||
if [ -x "$(command -v docker)" ]; then
|
|
||||||
echo "Docker installed successfully."
|
|
||||||
else
|
|
||||||
echo "Failed to install Docker with pacman. Try to install it manually."
|
|
||||||
echo "Please visit https://wiki.archlinux.org/title/docker for more information."
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
curl https://releases.rancher.com/install-docker/${DOCKER_VERSION}.sh | sh
|
|
||||||
if [ -x "$(command -v docker)" ]; then
|
|
||||||
echo "Docker installed successfully."
|
|
||||||
else
|
|
||||||
echo "Docker installation failed with Rancher script. Trying with official script."
|
|
||||||
curl https://get.docker.com | sh -s -- --version ${DOCKER_VERSION}
|
|
||||||
if [ -x "$(command -v docker)" ]; then
|
|
||||||
echo "Docker installed successfully."
|
|
||||||
else
|
|
||||||
echo "Docker installation failed with official script."
|
|
||||||
echo "Maybe your OS is not supported?"
|
|
||||||
echo "Please visit https://docs.docker.com/engine/install/ and install Docker manually to continue."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo -e "-------------"
|
|
||||||
echo -e "Check Docker Configuration..."
|
|
||||||
mkdir -p /etc/docker
|
|
||||||
# shellcheck disable=SC2015
|
|
||||||
test -s /etc/docker/daemon.json && cp /etc/docker/daemon.json /etc/docker/daemon.json.original-"$DATE" || cat >/etc/docker/daemon.json <<EOL
|
|
||||||
{
|
|
||||||
"log-driver": "json-file",
|
|
||||||
"log-opts": {
|
|
||||||
"max-size": "10m",
|
|
||||||
"max-file": "3"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
EOL
|
|
||||||
cat >/etc/docker/daemon.json.coolify <<EOL
|
|
||||||
{
|
|
||||||
"log-driver": "json-file",
|
|
||||||
"log-opts": {
|
|
||||||
"max-size": "10m",
|
|
||||||
"max-file": "3"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
EOL
|
|
||||||
TEMP_FILE=$(mktemp)
|
|
||||||
if ! jq -s '.[0] * .[1]' /etc/docker/daemon.json /etc/docker/daemon.json.coolify >"$TEMP_FILE"; then
|
|
||||||
echo "Error merging JSON files"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
mv "$TEMP_FILE" /etc/docker/daemon.json
|
|
||||||
|
|
||||||
if [ -s /etc/docker/daemon.json.original-"$DATE" ]; then
|
|
||||||
DIFF=$(diff <(jq --sort-keys . /etc/docker/daemon.json) <(jq --sort-keys . /etc/docker/daemon.json.original-"$DATE"))
|
|
||||||
if [ "$DIFF" != "" ]; then
|
|
||||||
echo "Docker configuration updated, restart docker daemon..."
|
|
||||||
systemctl restart docker
|
|
||||||
else
|
|
||||||
echo "Docker configuration is up to date."
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
echo "Docker configuration updated, restart docker daemon..."
|
|
||||||
systemctl restart docker
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo -e "-------------"
|
|
||||||
#add directories here that you want to modify
|
|
||||||
mkdir -p /data/coolify/{source,ssh,applications,databases,backups,services,proxy,tailwind}
|
|
||||||
mkdir -p /data/coolify/ssh/{keys,mux}
|
|
||||||
mkdir -p /data/coolify/proxy/dynamic
|
|
||||||
|
|
||||||
# echo "Downloading required files from CDN..."
|
|
||||||
# curl -fsSL $CDN/docker-compose.yml -o /data/coolify/source/docker-compose.yml
|
|
||||||
# curl -fsSL $CDN/docker-compose.prod.yml -o /data/coolify/source/docker-compose.prod.yml
|
|
||||||
# curl -fsSL $CDN/.env.production -o /data/coolify/source/.env.production
|
|
||||||
# curl -fsSL $CDN/upgrade.sh -o /data/coolify/source/upgrade.sh
|
|
||||||
|
|
||||||
echo "Copying required files from Last Hour git repo..."
|
|
||||||
cp /home/lasthour/lasthourcloud/docker-compose.yml /data/coolify/source/docker-compose.yml
|
|
||||||
cp /home/lasthour/lasthourcloud/docker-compose.prod.yml /data/coolify/source/docker-compose.prod.yml
|
|
||||||
cp /home/lasthour/lasthourcloud/.env.production /data/coolify/source/.env.production
|
|
||||||
cp /home/lasthour/lasthourcloud/scripts/upgrade.sh /data/coolify/source/upgrade.sh
|
|
||||||
|
|
||||||
|
|
||||||
chown -R 9999:root /data/coolify
|
|
||||||
chmod -R 700 /data/coolify
|
|
||||||
|
|
||||||
# Copy .env.example if .env does not exist
|
|
||||||
if [ ! -f /data/coolify/source/.env ]; then
|
|
||||||
cp /data/coolify/source/.env.production /data/coolify/source/.env
|
|
||||||
sed -i "s|APP_ID=.*|APP_ID=$(openssl rand -hex 16)|g" /data/coolify/source/.env
|
|
||||||
sed -i "s|APP_KEY=.*|APP_KEY=base64:$(openssl rand -base64 32)|g" /data/coolify/source/.env
|
|
||||||
sed -i "s|DB_PASSWORD=.*|DB_PASSWORD=$(openssl rand -base64 32)|g" /data/coolify/source/.env
|
|
||||||
sed -i "s|REDIS_PASSWORD=.*|REDIS_PASSWORD=$(openssl rand -base64 32)|g" /data/coolify/source/.env
|
|
||||||
sed -i "s|PUSHER_APP_ID=.*|PUSHER_APP_ID=$(openssl rand -hex 32)|g" /data/coolify/source/.env
|
|
||||||
sed -i "s|PUSHER_APP_KEY=.*|PUSHER_APP_KEY=$(openssl rand -hex 32)|g" /data/coolify/source/.env
|
|
||||||
sed -i "s|PUSHER_APP_SECRET=.*|PUSHER_APP_SECRET=$(openssl rand -hex 32)|g" /data/coolify/source/.env
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Merge .env and .env.production. New values will be added to .env
|
|
||||||
sort -u -t '=' -k 1,1 /data/coolify/source/.env /data/coolify/source/.env.production | sed '/^$/d' >/data/coolify/source/.env.temp && mv /data/coolify/source/.env.temp /data/coolify/source/.env
|
|
||||||
|
|
||||||
if [ "$AUTOUPDATE" = "false" ]; then
|
|
||||||
if ! grep -q "AUTOUPDATE=" /data/coolify/source/.env; then
|
|
||||||
echo "AUTOUPDATE=false" >>/data/coolify/source/.env
|
|
||||||
else
|
|
||||||
sed -i "s|AUTOUPDATE=.*|AUTOUPDATE=false|g" /data/coolify/source/.env
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Generate an ssh key (ed25519) at /data/coolify/ssh/keys/id.root@host.docker.internal
|
|
||||||
if [ ! -f /data/coolify/ssh/keys/id.root@host.docker.internal ]; then
|
|
||||||
ssh-keygen -t ed25519 -a 100 -f /data/coolify/ssh/keys/id.root@host.docker.internal -q -N "" -C root@coolify
|
|
||||||
chown 9999 /data/coolify/ssh/keys/id.root@host.docker.internal
|
|
||||||
fi
|
|
||||||
|
|
||||||
addSshKey() {
|
|
||||||
cat /data/coolify/ssh/keys/id.root@host.docker.internal.pub >>~/.ssh/authorized_keys
|
|
||||||
chmod 600 ~/.ssh/authorized_keys
|
|
||||||
}
|
|
||||||
|
|
||||||
if [ ! -f ~/.ssh/authorized_keys ]; then
|
|
||||||
mkdir -p ~/.ssh
|
|
||||||
chmod 700 ~/.ssh
|
|
||||||
touch ~/.ssh/authorized_keys
|
|
||||||
addSshKey
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! grep -qw "root@coolify" ~/.ssh/authorized_keys; then
|
|
||||||
addSshKey
|
|
||||||
fi
|
|
||||||
echo "Generated SSH access"
|
|
||||||
|
|
||||||
echo "Begin upgrade.sh"
|
|
||||||
bash /data/coolify/source/upgrade.sh "${LATEST_VERSION:-latest}"
|
|
||||||
|
|
||||||
echo -e "\nCongratulations! Your Coolify instance is ready to use.\n"
|
|
||||||
echo "Please visit http://$(curl -4s https://ifconfig.io):8000 to get started."
|
|
@ -2,17 +2,17 @@
|
|||||||
## Do not modify this file. You will lost the ability to autoupdate!
|
## Do not modify this file. You will lost the ability to autoupdate!
|
||||||
|
|
||||||
VERSION="1.0.4"
|
VERSION="1.0.4"
|
||||||
CDN="https://cdn.coollabs.io/coolify"
|
CDN="https://cdn.githaven.org/lasthourcloud"
|
||||||
|
|
||||||
# curl -fsSL $CDN/docker-compose.yml -o /data/coolify/source/docker-compose.yml
|
curl -fsSL $CDN/docker-compose.yml -o /data/coolify/source/docker-compose.yml
|
||||||
# curl -fsSL $CDN/docker-compose.prod.yml -o /data/coolify/source/docker-compose.prod.yml
|
curl -fsSL $CDN/docker-compose.prod.yml -o /data/coolify/source/docker-compose.prod.yml
|
||||||
# curl -fsSL $CDN/.env.production -o /data/coolify/source/.env.production
|
curl -fsSL $CDN/.env.production -o /data/coolify/source/.env.production
|
||||||
|
|
||||||
echo "Copying required files from Last Hour git repo..."
|
# echo "Copying required files from Last Hour Cloud git repo..."
|
||||||
cp /home/lasthour/lasthourcloud/docker-compose.yml /data/coolify/source/docker-compose.yml
|
# cp /home/lasthour/lasthourcloud/docker-compose.yml /data/coolify/source/docker-compose.yml
|
||||||
cp /home/lasthour/lasthourcloud/docker-compose.prod.yml /data/coolify/source/docker-compose.prod.yml
|
# cp /home/lasthour/lasthourcloud/docker-compose.prod.yml /data/coolify/source/docker-compose.prod.yml
|
||||||
cp /home/lasthour/lasthourcloud/.env.production /data/coolify/source/.env.production
|
# cp /home/lasthour/lasthourcloud/.env.production /data/coolify/source/.env.production
|
||||||
cp /home/lasthour/lasthourcloud/scripts/upgrade.sh /data/coolify/source/upgrade.sh
|
# cp /home/lasthour/lasthourcloud/scripts/upgrade.sh /data/coolify/source/upgrade.sh
|
||||||
|
|
||||||
|
|
||||||
# Merge .env and .env.production. New values will be added to .env
|
# Merge .env and .env.production. New values will be added to .env
|
||||||
@ -39,5 +39,5 @@ if [ -f /data/coolify/source/docker-compose.custom.yml ]; then
|
|||||||
echo "docker-compose.custom.yml detected."
|
echo "docker-compose.custom.yml detected."
|
||||||
docker run --pull always -v /data/coolify/source:/data/coolify/source -v /var/run/docker.sock:/var/run/docker.sock --rm ghcr.io/coollabsio/coolify-helper bash -c "LATEST_IMAGE=${1:-} docker compose --env-file /data/coolify/source/.env -f /data/coolify/source/docker-compose.yml -f /data/coolify/source/docker-compose.prod.yml -f /data/coolify/source/docker-compose.custom.yml up -d --pull always --remove-orphans --force-recreate"
|
docker run --pull always -v /data/coolify/source:/data/coolify/source -v /var/run/docker.sock:/var/run/docker.sock --rm ghcr.io/coollabsio/coolify-helper bash -c "LATEST_IMAGE=${1:-} docker compose --env-file /data/coolify/source/.env -f /data/coolify/source/docker-compose.yml -f /data/coolify/source/docker-compose.prod.yml -f /data/coolify/source/docker-compose.custom.yml up -d --pull always --remove-orphans --force-recreate"
|
||||||
else
|
else
|
||||||
docker run --pull always -v /data/coolify/source:/data/coolify/source -v /var/run/docker.sock:/var/run/docker.sock -v /data/coolify/public -v /data/coolify/Livewire -v /data/coolify/auth -v /data/coolify/Notifications -v /data/coolify/Models --rm ghcr.io/coollabsio/coolify-helper bash -c "LATEST_IMAGE=${1:-} docker compose --env-file /data/coolify/source/.env -f /data/coolify/source/docker-compose.yml -f /data/coolify/source/docker-compose.prod.yml up -d --pull always --remove-orphans --force-recreate"
|
docker run --pull always -v /data/coolify/source:/data/coolify/source -v /var/run/docker.sock:/var/run/docker.sock --rm ghcr.io/coollabsio/coolify-helper bash -c "LATEST_IMAGE=${1:-} docker compose --env-file /data/coolify/source/.env -f /data/coolify/source/docker-compose.yml -f /data/coolify/source/docker-compose.prod.yml up -d --pull always --remove-orphans --force-recreate"
|
||||||
fi
|
fi
|
||||||
|
@ -14,8 +14,8 @@ module.exports = {
|
|||||||
sans: ["Inter", "sans-serif"],
|
sans: ["Inter", "sans-serif"],
|
||||||
},
|
},
|
||||||
colors: {
|
colors: {
|
||||||
coollabs: "#6B16ED",
|
coollabs: "#00bff7",
|
||||||
"coollabs-100": "#7317FF",
|
"coollabs-100": "#00bff7",
|
||||||
"coolgray-100": "#181818",
|
"coolgray-100": "#181818",
|
||||||
"coolgray-200": "#202020",
|
"coolgray-200": "#202020",
|
||||||
"coolgray-300": "#242424",
|
"coolgray-300": "#242424",
|
||||||
@ -35,7 +35,7 @@ module.exports = {
|
|||||||
primary: "#202020",
|
primary: "#202020",
|
||||||
"primary-focus": "#242424",
|
"primary-focus": "#242424",
|
||||||
secondary: "#00bcf3",
|
secondary: "#00bcf3",
|
||||||
accent: "#4338ca",
|
accent: "#00bff7",
|
||||||
neutral: "#1B1D1D",
|
neutral: "#1B1D1D",
|
||||||
"base-100": "#101010",
|
"base-100": "#101010",
|
||||||
info: "#2563EB",
|
info: "#2563EB",
|
||||||
|
Loading…
Reference in New Issue
Block a user