Created
July 21, 2022 06:35
-
-
Save Bishwas-py/1a9459ae5279f6e6ec88a65f66381502 to your computer and use it in GitHub Desktop.
Nginx Setup for Rails app
This file contains hidden or 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
server { | |
listen 80; | |
listen [::]:80; | |
server_name _; | |
root /home/username/rails-app-name/public; | |
passenger_enabled on; | |
passenger_app_env production; | |
location /cable { | |
passenger_app_group_name deviser-club_websocket; | |
passenger_force_max_concurrent_requests_per_process 0; | |
} | |
# Allow uploads up to 100MB in size | |
client_max_body_size 100m; | |
location ~ ^/(assets|packs) { | |
expires max; | |
gzip_static on; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment