Skip to content

Instantly share code, notes, and snippets.

@safebuffer
Created December 19, 2021 19:34
Show Gist options
  • Save safebuffer/41cb624ee31459ecc97f8427350808bf to your computer and use it in GitHub Desktop.
Save safebuffer/41cb624ee31459ecc97f8427350808bf to your computer and use it in GitHub Desktop.
gophish nginx config
upstream gophish_admin{
server 0.0.0.0:8090;
}
upstream gophish_main{
server 0.0.0.0:8080;
}
server {
listen 80;
charset utf-8;
server_name admin.domain;
client_body_timeout 500;
client_header_timeout 500;
keepalive_timeout 500 500;
send_timeout 30;
access_log /var/log/nginx/gophish_admin_access.log combined;
error_log /var/log/nginx/gophish_admin_error.log;
location / {
proxy_pass http://gophish_admin;
}
}
server {
listen 80;
charset utf-8;
server_name www.domain domain;
client_body_timeout 500;
client_header_timeout 500;
keepalive_timeout 500 500;
send_timeout 30;
access_log /var/log/nginx/gophish_main_access.log combined;
error_log /var/log/nginx/gophish_main_error.log;
location / {
proxy_pass http://gophish_main;
}
}
sudo ln -s /etc/nginx/sites-available/gophish /etc/nginx/sites-enabled
// sudo ln -s /etc/nginx/sites-available/gophish /etc/nginx/sites-enabled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment