Created
December 19, 2021 19:34
-
-
Save safebuffer/41cb624ee31459ecc97f8427350808bf to your computer and use it in GitHub Desktop.
gophish nginx config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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