mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
shorthand for root domain and wildcard in map with hostname directive
This commit is contained in:
parent
f7b81c33e2
commit
0cd510da33
1 changed files with 2 additions and 3 deletions
5
Rakefile
5
Rakefile
|
@ -81,8 +81,7 @@ desc 'Compile domain map for nginx'
|
||||||
task :compile_domain_map => [:environment] do
|
task :compile_domain_map => [:environment] do
|
||||||
File.open('./files/map.txt', 'w') do |file|
|
File.open('./files/map.txt', 'w') do |file|
|
||||||
Site.exclude(domain: nil).exclude(domain: '').select(:username,:domain).all.collect do |site|
|
Site.exclude(domain: nil).exclude(domain: '').select(:username,:domain).all.collect do |site|
|
||||||
file.write "#{site.domain} #{site.username};\n"
|
file.write ".#{site.domain} #{site.username};\n"
|
||||||
file.write "*.#{site.domain} #{site.username};\n"
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -209,4 +208,4 @@ task :update_screenshots => [:environment] do
|
||||||
ScreenshotWorker.perform_async s.username
|
ScreenshotWorker.perform_async s.username
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
=end
|
=end
|
||||||
|
|
Loading…
Add table
Reference in a new issue