25 lines
No EOL
572 B
Ruby
25 lines
No EOL
572 B
Ruby
|
|
module Server
|
|
|
|
def self.setup(domain)
|
|
self.install_domain("gurgul.org")
|
|
end
|
|
|
|
def self.install_domain(domain)
|
|
self.install(["certbot", "nginx"])
|
|
system("sudo certbot certonly --manual --preferred-challenges=dns -d \"*.#{domain}\" -d \"#{domain}\"")
|
|
|
|
# check if direcotry exists /etc/letsencrypt/live/gurgul.org
|
|
# create user domain =>
|
|
end
|
|
|
|
def self.add_service(name)
|
|
|
|
end
|
|
|
|
|
|
def self.setting()
|
|
system("sudo dpkg-reconfigure locales")
|
|
system("sudo apt-get install locales-all")
|
|
end
|
|
end |