4e5346e2e0
- Added rsync installation in setup-env action for file synchronization. - Excluded playbook_websites.yml from ansible-apply-playbook workflow. - Created a new workflow for building and releasing the Hugo website. - Added submodule for Hugo theme in .gitmodules. - Updated host_vars for production to include websites configuration. - Introduced playbook_websites.yml for managing static files deployment. - Implemented hugo_build script for building and archiving Hugo sites. - Updated inventory to include a new web group for website deployment. - Refactored Terraform configuration to support new website structure. - Removed deprecated WordPress Terraform configuration. - Added .gitignore files for websites and specific Hugo site. - Created archetype and configuration files for the Hugo site. - Added static assets including CV and images for the Hugo site. - Integrated Hugo profile theme as a submodule for the website.
36 lines
596 B
Plaintext
36 lines
596 B
Plaintext
server {
|
|
listen 8080;
|
|
server_name localhost;
|
|
|
|
gzip on;
|
|
gzip_comp_level 9;
|
|
gzip_types
|
|
text/html
|
|
text/plain
|
|
text/css
|
|
text/js
|
|
text/xml
|
|
text/javascript
|
|
application/javascript
|
|
application/json
|
|
application/xml
|
|
application/rss+xml
|
|
image/svg+xml;
|
|
|
|
root /tmp/site;
|
|
|
|
location / {
|
|
index index.html index.htm;
|
|
}
|
|
|
|
location ~* ^/([^/]+) {
|
|
index index.html index.htm;
|
|
error_page 404 = @error;
|
|
}
|
|
|
|
error_page 404 /404.html;
|
|
location @error {
|
|
try_files /$1/404.html /404.html =404;
|
|
}
|
|
}
|