nginx.yml 332 B

1234567891011
  1. - name: Ensure nginx configuration is up to date
  2. template:
  3. src: gogs_nginx.conf.j2
  4. dest: /etc/nginx/sites-available/gogs.conf
  5. - name: Ensure gogs configuration for nginx is enabled
  6. file:
  7. state: link
  8. dest: /etc/nginx/sites-enabled/gogs.conf
  9. src: /etc/nginx/sites-available/gogs.conf
  10. notify: Reload nginx