Skip to content
This repository has been archived by the owner on Aug 17, 2023. It is now read-only.
/ server-landing Public archive

A cool landing page for your server.

License

Notifications You must be signed in to change notification settings

anjaraeu/server-landing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Server Landing Page - by Anjara ™️

Requirements

  • php-fpm (7.x)
  • php-cli (7.x)
  • composer
  • nginx
  • systemd

Install

  • Clone the repo somewhere.

cd /opt ; git clone https://github.com/anjaraeu/server-landing.git

  • Install composer requirements

cd /opt/server-landing/socket-server; composer install

  • Link the systemd service of the server-socket app.

ln -s /opt/server-landing/systemd/socket-server.service /etc/systemd/system/

  • Reload the daemons and enable the service.

systemctl daemon-reload ; systemctl enable socket-server

  • Start the service.

systemctl start socket-server

  • Link the web files.

ln -s /opt/server-landing/www /var/www/server-landing

  • Copy the nginx configuration.

cp /opt/server-landing/nginx/server-landing.conf /etc/nginx/sites-enabled/

  • Edit the configuration (replace all the domain.tld and check the php block if you are not using php-fpm7.3).
echo -e "Please type your (sub)domain"; read -r domain
sed -i "s|domain.tld|$domain|" /etc/nginx/sites-enabled/server-landing.conf
nano /etc/nginx/sites-enabled/server-landing.conf
  • Reload nginx

nginx -s reload

  • (optional) Add a gif.

If your server hostname is srv-app-1 for exemple, your gif name must be srv-app-1.gif. Put your gif file in /opt/server-landing/www/.

About

A cool landing page for your server.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •